Hello Danilo,
The following code snippet works as expected on my machine which is connected to the network printer specified by name:
If the printer is not reachable or valid, there must appear a PrintDialog requesting you to select a valid printer. Thus check if the print operation is failing due to the machine. Please double-check the name of the printer and if the machine is connected to that printer.
The machine's Event Viewer may contain more details about the error on print. Please post the error message in order to provide you more accurate suggestions.
Regards,
Stef
Telerik
The following code snippet works as expected on my machine which is connected to the network printer specified by name:
IReportDocument repDocList =
new
Report1();
// set printer settings
PrinterSettings printSet =
new
PrinterSettings();
printSet.Copies = 2;
printSet.PrinterName = @
"\\the name of our network printer"
;
// 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);
The machine's Event Viewer may contain more details about the error on print. Please post the error message in order to provide you more accurate suggestions.
Regards,
Stef
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items