Hi,
I worte printing a report programmatically.this is my code
| var report = new TelerikComponentsWS.Reports.RepFeeReceipt(); |
| report.DataSource = printdata; |
| Telerik.Reporting.Drawing.ExternalStyleSheet exx = new Telerik.Reporting.Drawing.ExternalStyleSheet("~\\css\\ReprotStyleSheet.xml"); |
| report.ExternalStyleSheets.Add(exx); |
| report.ReportParameters[0].Value = strTitle; |
| Telerik.Reporting.IReportDocument reportDocument = report; |
| System.Drawing.Printing.PrinterSettings printerSettings |
| = new System.Drawing.Printing.PrinterSettings(); |
| // The standard print controller comes with no UI |
| System.Drawing.Printing.PrintController standardPrintController = |
| new System.Drawing.Printing.StandardPrintController(); |
| // Print the report using the custom print controller |
| Telerik.Reporting.Processing.ReportProcessor reportProcessor |
| = new Telerik.Reporting.Processing.ReportProcessor(); |
| reportProcessor.PrintController = standardPrintController; |
| reportProcessor.PrintReport(report, printerSettings); |
It's working fine .it's printing report but it's Not working on server printing not working .it's working only my system .How to solve this problem