PDF Print Automation

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!
 
P

Patrice

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top