Check for file currently open

  • Thread starter Thread starter mcambrose
  • Start date Start date
M

mcambrose

My database uses Jpg files for photos of employees. Since they are jpg files
I have to open each one when the report is printed. Memory issues require me
to print this report in three parts and then combine the pdf files created. I
need to check to see if the last pdf file being printed is complete, but I
have no idea how. I tried watching to see when the file was created by
checking to see if the file exists, but it seems that the file exists shows
up as soon as the file starts being printed. If I try to open the new file as
soon as it exists, I get an error because printing to the file is not yet
complete. I was wondering if I could check to see if the file is open or
available to be opened. Any other suggestions are apprecited. I can put in a
loop to get the program to wait a period of time long enough for the file to
finish printing, but that is kind of clunky.
 
Back
Top