PDF Print Automation

  • Thread starter Thread starter Tech Support
  • Start date Start date
T

Tech Support

Hello,

I have a couple questions regarding print automation. I would like to do
the following:

1.Automatically search for PDF files on a network share I specify and
all the subdirectories within that specified directory.

2.Only look for PDF files that have certain digits I specify at the
first 4 digits of the file name.

3.Only look for PDF files that are later than or equal to a certain date
I specify.

4.Print (silently) all the PDF files that meets this criteria.

Any ideas or sample code do get me started is much appreciated.


Thanks!
 
1.Automatically search for PDF files on a network share I specify and
all the subdirectories within that specified directory.

2.Only look for PDF files that have certain digits I specify at the
first 4 digits of the file name.

3.Only look for PDF files that are later than or equal to a certain date
I specify.

1. 2 . 3. :
See
http://msdn.microsoft.com/en-us/library/system.io.directoryinfo.getfiles.aspx,
the returned file object have a last access or modification date depending
on what you are looking for. See String methods for the digit test (likely
StartsWith if you want them at the begnning).
4.Print (silently) all the PDF files that meets this criteria.

4. This is usually done using the "print" verb :
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.startinfo(VS.80).aspx,
the code sample shows this with a doc file. Try just a PDF file instead...
 
Back
Top