>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
Victoria,
Just use
oleApp.ActiveDocument.SaveAs("c:\foxprint\TempMem.doc")
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison