Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Basic and Foxpro
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128217
Message ID:
00128288
Views:
22
>I posted a message earlier about using word basic to format a document from within foxpro. Thanks for the answers, they were most helpful. My dilemma now is that I can get the font size and type to change but am now trying to save the file as a text file. I can pass the file name to the .FileSaveAs word basic command, but when I try to use ActiveDocument.SaveAs, foxpro is not happy with this. I have created an object (word.basic) to do the other formatting changes. How do I use this command so that foxpro will understand what wdFormatText is? I'm using Foxpro 5.0. Thanks again!


Paul

Try .fileSaveAs('c:\mydir\myfile.doc', #)

Where # is a number cooresponding to the type of save you want, ie: I believe 9 is 6.0 format. When I tested this (a long time ago) the 9 was the 9th option when you 'saved as' a document. I didn't have any documentation but and it was a trial and error process!

Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform