Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Frx2word class
Message
From
08/10/2001 13:04:22
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00565557
Message ID:
00565581
Views:
20
Hi Roger,

I was getting the -91 error until I fully qualified the SaveFolder path.
At the same time, I also fully qualified the report name.
It now runs fine.

bn

>Hello:
>
>I would like to use the frx2word class and get the following problem.
>
>if !used('master')
> use master
>endif
>sele master
>
>lcReportName = 'master1'
>report form &lcReportName prev && This works fine
>
>oF2W=NEWOBJECT("frx2word","msoexp")
>oF2W.SaveFolder="Documents\"
>oF2W.DOC_FileName="WordOut1.doc"
>
>nSuccess=oF2W.ReportForm("lcReportName") && This gives a -2 (No parameter. The name of the report must be passed.)
>nSuccess=oF2W.ReportForm("&lcReportName") && This gives a -91 (Error creating DOC file.)
>
>wait str(nSuccess) window
>
>
>
>Any suggestions?
>
>Thank you.
Bill N.
Previous
Reply
Map
View

Click here to load this message in the networking platform