SharePoint 2013 Print Library Item Automatically

While I have found the information I need to develop event handling for a specific list or library, what I have not found is a method to send the document (already converted to PDF) to a printer.  I have no idea where to start with this, though I am almost sure that it will involve building a custom printing service running on the host O/S (Windows Server 2012r2)...

Can anyone provide me ideas or at least a "where to look" reference? (I have no experience with building services)

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
question: when should the file be printed?
On creation, by user action, scheduled ...?

If possible, I would suggest a scheduled solution, utilizing a PowerShell script which downloads the files based on the creation / last modified date and then prints the file - e.g. like mentioned here:

Should be the easiest way - no SharePoint customization necessary, script will use Client Object Model or simple Web Requests to get the content, it can run on any server ...

Just my 2 ct

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
g_currierAuthor Commented:
Right...sorry I forgot to include the "when" part... it would essentially be when the document (the PDF) is checked in to a document library.  I could use a scheduled Powershell task to read the library and then download the file and print it...does that sound about right? Is it necessary that the file sits in a folder first?
Rainer JeschorCommented:
yes, that sound right.
I am not sure if the PowerShell command can work with the WebDAV connected files and it might be hard to filter the files (I guess you do not want to print each and every file everytime) - therefore running a SharePoint query on the library returning only the necessary (affected) documents to a local folder and then running the print in a loop on the local files would be my suggested solution.

Jamie McAllister MVPSharePoint ConsultantCommented:
I'm with Rainer on this one, if you can get away with a batch process it'll be a nicer approach. You should architect it as detailed here;

If it has to be real time then you probably need to code an event receiver, or workflow to handle the passing over to another unattended service for printing. (But seriously I'd keep the code off the SharePoint servers if at all possible. Your custom task could poll for new content every ten minutes rather than going for a full synchronous process?)

Windows Services tend to be overkill for this sort of thing. Task scheduler running a simple console app is usually a better approach, more robust and much less code.

Just a thought but to decouple this a little without using an event receiver or regular polling etc you could actually set up an alert on the library and send the alert emails to the print process you create (as the emails should contain the info you need to find the items that need printing).
g_currierAuthor Commented:
Thanks for the tip...I am implementing this and beginning my testing. read the print
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Services

From novice to tech pro — start learning today.