When clicking the print button for my Crystal report, I see this:
I don't want to Export to PDF first, I just want to print immediately when the Print button is pushed. How can I configure this behavior?
When clicking the print button for my Crystal report, I see this:
I don't want to Export to PDF first, I just want to print immediately when the Print button is pushed. How can I configure this behavior?
Sounds like you want to use the PrintToPrinter
method. According to MSDN:
Prints the specified pages of the report to the printer selected using the PrintOptions.PrinterName property. If no printer is selected, the default printer specified in the report will be used.
You'll need to pass the number of copies, whether or not it should be coallated, and the start/end pages as parameters. Something like:
public void PrintToPrinter (5, false, 1, 3);