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

issues printing from a web server

2 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex White
Top achievements
Rank 1
Alex White asked on 21 Apr 2010, 03:12 PM

Hi,

I am currently using the following code

 

System.Drawing.Printing.

PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();

 

Telerik.Reporting.Processing.

ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();

 

reportProcessor.PrintReport(

this.MyReport.Report, printerSettings);

 



in server code to print directly to the default printer, this code works perfectly when I run it in the visual studio environment, when I port the code to the web server this code then fails, something to do with access denied.

Message: Access is denied.

Line: 346
Char: 9
Code: 0
URI: http://paml111/Telerik.ReportViewer.axd?name=Resources.ReportViewer.js&version=4.0.10.310&optype=Resource


any asstaince with this would be great.

thanks


alex

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 23 Apr 2010, 05:01 PM
Hello Alex,

This KB article elaborates on the printing capabilities of Telerik Reporting: Print Report straight to printer.
Namely, the problem here is that PrintReport is server-side method and tries to print on the server i.e. the code works and probably invokes the Print Dialog of the web server itself.
While your actual goal is to allow for the user to print, which has to be done on the client via javascript. This works on your dev machine, as it plays the role of both server and client.

Best wishes,
Steve
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Alex White
Top achievements
Rank 1
answered on 28 Apr 2010, 01:30 PM
Thanks for the responce that fixed it.
Tags
General Discussions
Asked by
Alex White
Top achievements
Rank 1
Answers by
Steve
Telerik team
Alex White
Top achievements
Rank 1
Share this question
or