This is a migrated thread and some comments may be shown as answers.

problem in server printing a report programmatically

0 Answers 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 24 Jun 2010, 08:04 AM
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 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
shanker bangari
Top achievements
Rank 1
Share this question
or