Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need miracle!
Message
 
To
18/09/2002 14:31:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00701415
Message ID:
00702486
Views:
19
>>
>>   set device to screen
>>   m.duh=FILETOSTR('c:\prtemp.htm')
>>   m.duh='<html><body>'+CHR(13)+m.duh+CHR(13)+'</body></html>'
>>   =STRTOFILE(m.duh,'c:\reportview.htm')
>>
>>
>>
>>I'm still going to investigate what Peter was talking about but so far this little kludge seems to work like a charm!
>
>To make this work properly in a networked environment, just start using sys(2015) to create the filename - because if two users start running this report at (sufficiently) same time, this will break (if you omit the path, that is). And you may want to send it to user's Temp directory, not c:\. Using C:\ for anything is just not kosher.

Thanks. This was just demo code. Normally I just set the innerhtml property of the document's body object directly like this:
THISFORM.ieBrowser.Document.body.innerhtml=tcBodyText
This way I don't have to even create a file!

Hugh
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!

Support the product. Buy the latest version!

Hugh Winters @ WorldData 408-512-1131
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform