Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word SaveAs
Message
 
To
27/01/2000 11:14:19
Victoria Mckee
Kansas City Life Insurance Co
Kansas City, Missouri, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00323592
Message ID:
00323599
Views:
19
>I do not have any trouble opening a document, doing a mail merge with a Fox data table, or printing the doucument, but now my user needs to have the document saved to a new file name so that it can be e-mailed to various folk in our company.
>
>The only reference documentation is referencing VB.
>
>My current line:
>
>oleApp.ActiveDocument.SaveAs FileName:=("c:\foxprint\TempMem.doc")
>
>returns a syntax error. I wonder if there are parameters I am missing or if the VB example just does not work in Fox. Also any reference book for Word as a server with Fox syntax would be greatly appreciated (title/author/isbn number). We are using Vis Fox 6.0 and Word from Office 2000.
>
>Thanks so much.
>
>Victoria

My save as looks like this:

oWord.ActiveDocument.SaveAs(cADLWordDocPath,wdFormatDocument,.F.,"",.F.,"",.F.,.F.,.F.,.F.,.F.)

What each parameter is I found in the VBA help that came with word. When I saved a macro I looked at the code then converted it to vfp.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform