We need to print a report periodically from a windows service, we use .NET 2.0.
We have modules that produce this report as a PDF or as an HTML file, PDF would be better because we have better control over the look of the report.
We also have the username, password and the name of the printer selected for the task.
I searched and researched several options on how to print PDF files from windows service, namely using Acrobat Reader from command line and couldn’t make it work.
Acrobat Reader seems to be unreliable and difficult to use, also we would need to guarantee it is intalled on our clients machines.
Do you have a solution for this, which may be in a third party component?
Thanks
We found this hidden pearl of open source library called pdfprint# that does exactly what we needed.
It seems it’s based on XPDF which is an open source library in C++.
The author wrote in the forum that “The printer has to be post-script capable, the library sends raw postscript to the printer.” and I wonder (and fear) how big of a problem this will be…
Thanks all for your help!