Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fixing frx2word bug in report variable initial value
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00574226
Message ID:
00585985
Views:
73
>Andrus
>
>Yes that deals with the property. But when I run the code
>
>oF2W = NEWOBJECT("frx2word", "msoexp") && Create instance of FRX2WORD
>oF2W.SaveFolder = "g:\swissglob\pods\" && directory to create .DOC in
>oF2W.html_FileName = "Wordout.htm" && name of .DOC file to create
>oF2W.ReportHome="g:\swissglob\vfp" && Optional (new to 1.5)
>nSuccess = oF2W.ReportForm("podrunx") && Process MyReport.FRX to create document
>release oF2W
>wait window str(nsuccess)
>
>nsuccess=-92 (ie can't produce the HTML doc)
>
>Can you help at all?

This error means that vfp fcreate() cannot create a file.
Try
wait wind str( fcreate( oF2W.SaveFolder+oF2W.html_FileName ))

and look into returned value.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform