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?
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?
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.
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?
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.
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?
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.