Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Frx2word class
Message
De
08/10/2001 17:09:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
00565557
Message ID:
00565684
Vues:
14
Hi Roger,

You have to fully qualify the path; Word is really picky about the structure of the file pathname with the SaveAs command, which I am calling via Automation. Also, there may be a DOC file with the same name that another user has locked or is in use.

>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.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform