Let user select any printer to print a report

266 Views Asked by At

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);
0

There are 0 best solutions below