cancel
Showing results for 
Search instead for 
Did you mean: 

ASP.NET Printing crystal report directly to client pc default printer

Former Member
0 Kudos

Hi,

We are using VS.NET 2008 and crystal report which is comes along with it.

We are devlopeing web based Point of Sales application. We using crystal report for reporting purpose.

We want to print bills directly to client printer.

Currently the crystal report viewer is opening (1), after print button click (2), it is asking for export (3), after that it is showing PDF of the report(4). then user have to print the report (5)

We want to emliniate this 5 steps process into 1 step. I.e After press print button the system will ask printer selection for print.

Siince it is Sales bills generation, user does not to spend so much of time to print a single report.

We want to follow a typical windows forms application to print report directly to client PC default printer.

This is most imporant since the application will go live from this month end.

Regards

S. Muhilan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We can achive the same functionality through code:

Try with this:


crReportDocument.PrintOptions.PrinterName ="\\ " ;
crReportDocument.PrintToPrinter(1, true, 1, 1);

You can download samples from [here|https://www.sdn.sap.com/irj/boc/samples]

Regards,

Shweta

Former Member
0 Kudos

Hi

This method is used in server side. But I want to print report in client PC who are in branch office.

Our server is in head office.

Regards

S. Muhilan

0 Kudos

Hi,

You would have to map all your branch offices and set permissions for a network share. Talk to your IT guys on how to do this. If not possible only other option is to create your own export button and export the file to pdf format or what ever you use and then transfer that file to the local branch and then print it. All outside of CR at this point though.

Other than sharing every branches printer to your web server it can't happen. It would also be a big security issue.

You may want to call sales and ask for a consultant to suggest some other type of work around or process or application deployment solution.

Thank you

Don

Answers (0)