>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