General information
Category:
Coding, syntax & commands
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only