Hi,
I have selected a printer while printing picking list report from Production order->Start screen.
But the report is always sent to default printer (Microsoft XPS document writer).
I have debugged the code and found that the problem is in below code of run method of SrsReportRunController class.
printerInfo = printerHelper.GetPrinterInfo(srsPrintDestSettings.printerName());
// Check if the device is available
if (printerInfo == null)
{
// Use the default printer
printerSettings = new System.Drawing.Printing.PrinterSettings();
srsPrintDestSettings.printerName(printerSettings.get_PrinterName());
}
Here , printerInfo is initialized to null so it is assigning default printer.
But when I use the same printer to print picking list from Production control->Reports->Production papers->Picking list, this printerInfo object is initialized and the report is sent to printer.
printerSettings.get_PrinterName() is returning the same printer name in both scenarios.
Have anyone faced this issue and how it can be solved?