Remove the option Print to PDF

When I click the print button for my Crystal report, I see the following:

enter image description here

I don’t want to export to PDF first, I just want to print right away when the "Print" button is clicked. How can I customize this behavior?

+2
source share
1 answer

It looks like you want to use the PrintToPrinter method. According to MSDN:

Prints the specified report pages on a printer selected using the PrintOptions.PrinterName property. If no printer is selected, the default printer specified in the report will be used.

You will need to pass the number of copies, whether it should be coordinated, and the start / end pages as parameters. Sort of:

 public void PrintToPrinter (5, false, 1, 3); 
0
source

All Articles