Skip to Content
0
Apr 13, 2018 at 01:36 PM

Printing out of Viewer suggests wrong printer

473 Views

I'm using CRVS with SP18.

The Viewer works with PrintMode set to "PrintMode.PrintOutputController". Now when the report is drawn in the viewer, the customer clicks on the Print-Button in the toolbar which internally executes CrystalDecisions.Windows.Forms.CrystalReportViewer.PrintReport().

When the print dialog opens, the default printer is suggested. How can I propose another printer to the customer?

I tried several ways setting the printer for the viewer print dialog:

  • CrystalDecisions.CrystalReports.Engine.PrintOptions.PrinterName
  • CrystalDecisions.CrystalReports.Engine.ReportDocument.ReportClientDocument.PrintOutputController.GetPrintOptions.PrinterName
  • CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions.PrinterName
  • System.Drawing.Printing.PrintDocument.PrinterSettings.PrinterName

None of them works....

Regards,

Patrick