PDFCReader Control

  • Thread starter Thread starter Rich K
  • Start date Start date
R

Rich K

I have a form with a PDFCReader Control. I also have a listbox that is
populated by pdf files in a specific folder. Users scan documents into this
folder and the list is updated automatically.

When the user single clicks on the list the clicked document previews in the
PDFCReader Controls. This works well. The user can then select a location
to copy the file, and this copy process works. I then would like to kill the
file from the original location but since it is open in the viewer I get a
windows error (as it should).

Does anybody know how I can look through the pdf's in the viewer and
determine if the specific document is open and then close it so I can delete
it?
 
On Mon, 29 Mar 2010 09:46:01 -0700, Rich K

One thought I had was to create a special "blank.pdf" file that you
could select in the viewer when you don't want any other "real" file
to be selected.

-Tom.
Microsoft Access MVP
 
Thanks for the idea Tom.

I have been allowing multiple pdf's to be opened in the viewer, so the
process may be a bit different then came across in my description. However,
you may have pointed me in a valuable direction, in that maybe if I just
allow one document open at a time I can close the whole viewer and therefore
closing the document which then will allow me to kill it.

I will start down this new path, but if anybody has any ideas on my original
issue please chime in, as I kind of like having multiple files open, and my
client would be pleased with this feature.

Thanks,
Rich
 
On Tue, 30 Mar 2010 08:05:01 -0700, Rich K

Can each of these viewer windows display the new "blank.pdf"?
Or does this control allow the document somehow to be set to Nothing?

-Tom.
Microsoft Access MVP
 
Back
Top