Find out when printing is ready

M

Marc

I have a function that prints a report to a pdf file. After printing, I
create an email an attach the just printed pdf. However, when running this
function on a network, sometimes the printing is not jet finished when the
macro creates to email and tries to attach the pdf.
Does anybody know how you can find out if the printing proces is finished,
so that I can continou running the function ???
 
A

Alex Dybenko

Hi,
what you can try - is to open file in exclusive mode, if this fail - then
file is still "printed"
 
Top