Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Using Saveas Method To Save A Word Doc
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00250199
Message ID:
00250209
Vues:
39
>I AM USING ole TO CALL A WORD TEMPLATE AND INSERTING VALUES INTO THE TEMPLATE FROM A TABLE. I NEED TO SAVE THE DOCUMENT UNDER ANOTHER NAME. WHEN THE PROGRAM EXECUTES THIS CODE:
>
>owordobj.saveas(SYS(5)+SYS(2003)+"\DOCS\DOCNAME.DOC)
>
>I GET :
>
>OLE ERROR CODE 08X0010105. THE SERVER THREW AN EXCEPTION
>
>
>I AM USING VFP6.0 SP3 AND WOR97
>
>ANY IDEAS?
>
>
>THANKS IN ADVANCE

First turn off your caps. Second try hard coding the path to see if the exception is directly related to your sys functions. If that works you can always store the path to a variable and pass that to the saveas.

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform