Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need miracle!
Message
 
À
18/09/2002 14:31:49
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00701415
Message ID:
00702486
Vues:
20
>>
>>   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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform