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

Silverlight reporting, sending the report to the printer, accessing printer's preferences.

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Erik Renaud
Top achievements
Rank 1
Erik Renaud asked on 02 Mar 2010, 06:48 PM
Hi Team

I'm currently working on a report using Telerik's reporting for silverlight. Everything works find,  ReportsParameter are being sent in RenderBegin event method and the report is being rendered the way it has to be.

If possible, how could I set programmatically the settings of the printer:
- I want to print in A5 format.
- I want to select a printer from the available printers on client side.
In other words: I want to access printer's preferences.

In the forum, I saw capabilities for asp.net, what about Silverlight?

So far, I've used ReportViewerModel to "model.PrintReportCommand.Execute(null) to execute automatically the print command when the report is displayed. The Printer's dialog is being displayed and that's what I need to avoid.

Regards
Ed




1 Answer, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 03 Mar 2010, 02:36 PM
As far as I know you cannot access the printer settings of the client as this would be a security vulnerability. Telerik have this KB that elaborates on the print from the web viewer and according to their explanations I am correct i.e. "there is no way to list the available printers".

Cheers
Tags
General Discussions
Asked by
Erik Renaud
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or