Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement