Skip to Content
avatar image
Former Member

Crystal Report Printing Problem


I am using vs15. i developed a web application. Try to print the all pages from crystal report, but only single page is print.

i am used below code for printing but not working.

private string GetDefaultPrinter() {

PrinterSettings printerSettings = new PrinterSettings();

foreach (string printer in PrinterSettings.InstalledPrinters)


printerSettings.PrinterName = printer;

if (printerSettings.IsDefaultPrinter) return printer;


return null;


protected void btnPrint_Click(object sender, EventArgs e) {

string printer = GetDefaultPrinter();

crystalReport.PrintOptions.PrinterName = printer;

crystalReport.PrintToPrinter(1, false, 0, 0);


Thank you...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer