Page 1 of 1
.TextOut: Problem with updating to new version
Posted: Mon Sep 20, 2004 2:14 pm
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
Re: Problem with updating to new version (textout)
Posted: Mon Sep 20, 2004 3:20 pm
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.
Re: Problem with updating to new version (textout)
Posted: Mon Sep 20, 2004 4:34 pm
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?
Posted: Mon Sep 20, 2004 5:53 pm
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
Posted: Mon Sep 20, 2004 6:10 pm
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.
Posted: Tue Sep 21, 2004 11:14 am
by bigolslabomeat
I sent an e-mail to <
Mail address removed by moderator - see Rules and Guidelines>, is that correct?
Posted: Tue Sep 21, 2004 2:55 pm
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.
Posted: Tue Sep 21, 2004 3:50 pm
by bigolslabomeat
Sorry!
Posted: Thu Sep 23, 2004 9:29 am
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
Posted: Fri Sep 24, 2004 1:10 pm
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.
Posted: Mon Dec 17, 2007 11:49 am
by moonshadow88
i have the same error and can't find the solution.
any ideas?
.textout funciton crashes
using version 2.70
Posted: Mon Dec 17, 2007 12:37 pm
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?
Posted: Mon Dec 17, 2007 1:05 pm
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)
Posted: Mon Dec 17, 2007 2:56 pm
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