作者:军军CJJ_317 | 来源:互联网 | 2023-09-25 15:13
Weneedtoprintareportperiodicallyfromawindowsservice,weuse.NET2.0.Wehavemodulesthat
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
我们需要定期从Windows服务打印报告,我们使用.NET 2.0。我们有以PDF或HTML文件形式生成此报告的模块,PDF会更好,因为我们可以更好地控制报告的外观。我们还有用户名,密码和为该任务选择的打印机名称。我搜索并研究了如何从Windows服务打印PDF文件的几个选项,即从命令行使用Acrobat Reader,但无法使其工作。 Acrobat Reader似乎不可靠且难以使用,我们还需要保证它安装在我们的客户机器上。您是否有解决方案,可能是第三方组件?谢谢
5 个解决方案