.TextOut: Problem with updating to new version

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
bigolslabomeat

.TextOut: Problem with updating to new version

Post by bigolslabomeat »

my old asp code has stopped working now I have installed a new version and I can't get my head round the documentation, could anyone help?

Code: Select all

With ctrl
	.enablelzw= True
	.LoadBitmap file
	
	.FontName = "wingdings"
    .FontSize = 12
	.FontBold = true
    
	Do While NOT rsDoing.EOF
		.TextOut "l", rsDoing("maplocationx") - 4, rsDoing("maplocationy") - 4, RGB(255, 255, 0)
		rsDoing.MoveNext
	Loop

	response.contenttype = "image/GIF"
	response.binarywrite .SendBinary
end with
The idea is that it loads this map and inserts dots at the specified co-ordinates. This is achieved by the character "1" in wingdings which happens to be a dot. When running under windows server 2003 I get this error:
Microsoft VBScript runtime error '800a01fb'

An exception occurred: 'TextOut'

/scripts/flirtmap.asp, line 29
What has changed with this function and how do i use it now?

Thanks in advance
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problem with updating to new version (textout)

Post by xnview »

bigolslabomeat wrote:my old asp code has stopped working now I have installed a new version and I can't get my head round the documentation, could anyone help?
Which version do you used?

Code: Select all

With ctrl
	Do While NOT rsDoing.EOF
		.TextOut "l", rsDoing("maplocationx") - 4, rsDoing("maplocationy") - 4, RGB(255, 255, 0)
		rsDoing.MoveNext
	Loop
end with
The idea is that it loads this map and inserts dots at the specified co-ordinates. This is achieved by the character "1" in wingdings which happens to be a dot. When running under windows server 2003 I get this error:
I don't see errors in your code!
The picture loaded is in RGB 24bits?
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Problem with updating to new version (textout)

Post by helmut »

bigolslabomeat wrote:...
When running under windows server 2003 I get this error:
Microsoft VBScript runtime error '800a01fb'

An exception occurred: 'TextOut'

/scripts/flirtmap.asp, line 29
What has changed with this function and how do i use it now?

Thanks in advance
I once had an application which worked fine on Windows NT, but not on Windows NT Server. Does your code run in a normal (non-server) environment?

Just to make sure: I assume that the even simpler code

Code: Select all

Do While NOT rsDoing.EOF
	Debug.Print "l", rsDoing("maplocationx") - 4, rsDoing("maplocationy") - 4, RGB(255, 255, 0)
		rsDoing.MoveNext
Loop
does work - does it?
bigolslabomeat

Post by bigolslabomeat »

pierre, the picture loads fine without the .textout line

helmut, I tested the db connection and the return of values all works fine, it's just the textout function!

I had this working fine on a windows 2000 machine with a version of gflax i can't remember, and now porting the same code to a windows 2003 machine with the latest (2.07 i think) and it just comes up with that error whenever .textout is used. Could it be an issue with windows not letting gfl access the font folder? Anyone got any experience of gfl with windows server 2003?

cheers
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

bigolslabomeat wrote:pierre, the picture loads fine without the .textout line

helmut, I tested the db connection and the return of values all works fine, it's just the textout function!

I had this working fine on a windows 2000 machine with a version of gflax i can't remember, and now porting the same code to a windows 2003 machine with the latest (2.07 i think) and it just comes up with that error whenever .textout is used. Could it be an issue with windows not letting gfl access the font folder? Anyone got any experience of gfl with windows server 2003?
cheers
Please, contact me on my email, i'll send you the current version.
Pierre.
bigolslabomeat

Post by bigolslabomeat »

I sent an e-mail to <Mail address removed by moderator - see Rules and Guidelines>, is that correct?
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

bigolslabomeat wrote:I sent an e-mail to <Mail address removed by moderator - see Rules and Guidelines>, is that correct?
The mail address is correct.
bigolslabomeat

Post by bigolslabomeat »

Sorry!
bigolslabomeat

Post by bigolslabomeat »

Me again!

Thanks to Pierre for his rapid reply and his efforts, however I may need to investigate an alternative method.

How do I get gfl to do a similar thing, but with images? So instead of outputting text at a co-ordinate, it places another image at a co-ordinate. How do I code that?

Regards

Richard
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

bigolslabomeat wrote:Thanks to Pierre for his rapid reply and his efforts, however I may need to investigate an alternative method.

How do I get gfl to do a similar thing, but with images? So instead of outputting text at a co-ordinate, it places another image at a co-ordinate. How do I code that?
I try to understand why?
Else you can use DrawImage
Pierre.
moonshadow88
Posts: 2
Joined: Mon Dec 17, 2007 11:48 am

Post by moonshadow88 »

i have the same error and can't find the solution.

any ideas?

.textout funciton crashes

using version 2.70
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

moonshadow88 wrote:i have the same error and can't find the solution.

any ideas?

.textout funciton crashes

using version 2.70
You have a crash with TextOut?
Pierre.
moonshadow88
Posts: 2
Joined: Mon Dec 17, 2007 11:48 am

Post by moonshadow88 »

yes, with the example files

file "example3.asp" in line:

.TextOut .About, 2, 2, RGB(255, 255, 255) 'Write library version on the picture

error in IIS log is:

2007-12-17 11:22:11 172.17.1.201 - 172.17.1.97 82 GET /GflAx/example3.asp |34|800a01fb|An_exception_occurred:_'TextOut' 500 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648)
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

moonshadow88 wrote:yes, with the example files

file "example3.asp" in line:

.TextOut .About, 2, 2, RGB(255, 255, 255) 'Write library version on the picture

error in IIS log is:

2007-12-17 11:22:11 172.17.1.201 - 172.17.1.97 82 GET /GflAx/example3.asp |34|800a01fb|An_exception_occurred:_'TextOut' 500 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648)
Please send me your email by PM
Pierre.
Post Reply