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:
00147663
Views:
28
>>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
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform