How to print crystal report directly to a client machine using C# Asp.net

一笑奈何 提交于 2019-12-19 03:19:23

问题


I need to print a Crystal report page to client printer machine without showing the report or without showing any dialog box.

One point I'd like to mention is that I know the name of Client Printer. How do I send the path to that printer.

Just to make it clear the application runs on a server machine in a remote location.

There are some similar question here , but WITHOUT any final solution,like this one.

How to print crystal report without opening the report in asp.net?

Is there a specific solution to this that I can use ?


回答1:


Below line opens up print dialog box to print without showing print preview crystalReportViewer1.PrintReport();

Below line directly sends reportdocument to default printer.

oReportDocument.PrintToPrinter(1,true,0,0);



来源:https://stackoverflow.com/questions/7849546/how-to-print-crystal-report-directly-to-a-client-machine-using-c-sharp-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!