Hello everyone
I'm using Telerik ReportViewer for about one or two years now without any problems. But since the last update, I'm not able to print a report using the printer name property. I'm using the following code to print a report:
IReportDocument repDocList =
new
Fertigungsliste(
"85856917"
,
"1"
);
// set printer settings
PrinterSettings printSet =
new
PrinterSettings();
printSet.Copies = 1;
printSet.PrinterName = @
"\\bbfs\ADM51"
;
// create print controller
PrintController printCtrl =
new
StandardPrintController();
// create report processor
ReportProcessor repProc =
new
ReportProcessor();
repProc.PrintController = printCtrl;
InstanceReportSource repSrc =
new
InstanceReportSource();
repSrc.ReportDocument = repDocList;
repProc.PrintReport(repSrc, printSet);
Unfortunately this code doesn't print the report anymore. If I delete
printSet.PrinterName = @
"\\bbfs\ADM51"
;
it works. Then it uses the default windows printer. But this does not help me. I need to set the printer name like in the example above.
Is there a bug in the latest version of reporting?
Suggestions appreciated
Regards,
Danilo