0

This code works well printing to default printer, but how I can do to display the Print Dialog to allow the user to select any printer?

var report = new ReportDocument();
report.Load(System.Windows.Forms.Application.StartupPath + @"\Reports\RouteSlip.rpt");
report.Database.Tables[0].SetDataSource(dtData.Tables[0]);       

var prntSettings = new PrinterSettings
{
  Copies = 1,
  Collate = false,
};
report.PrintToPrinter(prntSettings, new PageSettings(), false);
Lance U. Matthews
  • 15,725
  • 6
  • 48
  • 68

0 Answers0