M
MarkS
Hi,
I have the following line of code within an Application :
objWordApp.ActiveDocument.SaveAs strTargetFolder & "\" & strFileName &
".pdf", wdFormatPDF
objWordApp.ActiveDocument.Close wdDoNotSaveChanges
objWordApp.quit
I seems that Word is quitting prior to writing the PDF completely as the
file gets written to the disc but seems to be locked or not saved correctly
and will not display. If I remove the .quit the file gets successfully
written and I can later view it. Is there any way of testing to ensure the
save has completed (a property etc) prior to quiting.
Thanks
I have the following line of code within an Application :
objWordApp.ActiveDocument.SaveAs strTargetFolder & "\" & strFileName &
".pdf", wdFormatPDF
objWordApp.ActiveDocument.Close wdDoNotSaveChanges
objWordApp.quit
I seems that Word is quitting prior to writing the PDF completely as the
file gets written to the disc but seems to be locked or not saved correctly
and will not display. If I remove the .quit the file gets successfully
written and I can later view it. Is there any way of testing to ensure the
save has completed (a property etc) prior to quiting.
Thanks