Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PrintToFile syntax
Message
 
To
05/03/2000 19:54:05
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00341754
Message ID:
00341956
Views:
30
>John:
>
>I declare oWord, open up a document and all that and then ...
>
> oWord.ActiveDocument.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
> wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
> Collate:=True, Background:=True, PrintToFile:=False
>
>which I took straight from the Word Macro (subbing oWord.ActiveDocument in the begining, right?). Syntax error city. Syntax error county, for that matter ...
>
>Am I missing something simple?

No, that's what you get, but it requires passing parameters as they appear in the list. It's not real straightforward, but you can play with it and get it to work. Just pass them in the same position as tey apear.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform