Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE to Word
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00147523
Message ID:
00147688
Views:
34
>>>I am doing an OLE into MS Word and everything is is fine except
>>>when I issue a FilePrint then I Quit Word. Word is not finished printing and
>>>will ask if you want to stop print job.
>>>Is there a way to detect if Word is done printing before I shut it down?
>>
>>
IF TYPE('ThisForm.oWord') = 'O' AND NOT ISNULL(ThisForm.oWord)
>>	DO WHILE ThisForm.oWord.BackgroundPrintingStatus > 0
>>		DOEVENTS()
>>	ENDdo
>>	ThisForm.oWord.DisplayAlerts = wdAlertsAll
>>	ThisForm.oWord.Quit()
>>ENDif
>
>here it is...
>
>oWord.toolsoptionsprint(,,,,,,,,,,,0,,,) && Turns off background printing
>oWord.toolsoptionsprint(,,,,,,,,,,,1,,,) && Turns it back on

I'd rather just leave it on: that's what my code above does.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform