Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a Word Document
Message
 
To
09/08/2000 17:52:19
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00402842
Message ID:
00403126
Views:
16
>Where in sequence of the above would be the best place to insert this?

Hi William,

I would add it right after instantiating word (between line 1 and 2 in your example).

Alex


>>>oWord=CREATE("Word.Application")
>>>oDoc=oWord.Documents.Open("c:\my documents\test.doc")
>>>oDoc.Printout()
>>>oWord.Quit(0)
>>>
>>>I had to "*" out the "oWord.Quit(0)" to get it to actually print.
>>>
>>>Howcome?
>
>>You have to add the following so that word doesn't quit before printing:
>>
>>oWord.Options.PrintBackGround = .F. && don't close word until done printing
>
Low-carb diet not working? Try the Low-food diet instead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform