>>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