简体   繁体   中英

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

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 ?

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);

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

此行直接打印到打印机

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM