string printerName = GetPrinterName();
if (printerName != null)
{
cr.PrintOptions.PaperSource = PaperSource.Auto;
cr.PrintOptions.PaperSize = PaperSize.DefaultPaperSize;
CrystalDecisions.Shared.PageMargins edges = new CrystalDecisions.Shared.PageMargins(1, 1, 1, 1);
cr.PrintOptions.ApplyPageMargins(edges);
crystalReportViewer1.ReportSource = cr;
crystalReportViewer1.Refresh();
cr.PrintOptions.PrinterName = printerName;
cr.PrintToPrinter(1, false, 0, 0);
}
Regards,