Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Using Saveas Method To Save A Word Doc
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00250199
Message ID:
00250209
Views:
38
>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
Map
View

Click here to load this message in the networking platform