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