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

silently Print trdx reports using MVC without using ReportViewer

1 Answer 205 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Naren
Top achievements
Rank 1
Naren asked on 10 Jun 2015, 03:55 PM

I am trying to print Telerik report (.trdx) directly to the printer using MVC.

 

Please let me know the solution.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 11 Jun 2015, 09:10 AM
Hello Naren,

Telerik Reporting ASP.Net WebForms and HTML5 viewers rely on the client(browser)'s PDF plugin to print the report. This operation cannot be started without the user confirmation at the client.

The recommended approach to print at the client is to export the report in PDF format with specififc Javascript settings forcing the PDF reader to open its Print dialog - Print a report directly at client-side without displaying it in an ASP.NET ReportViewer. Details how to wrap a TRDX file for further processing are available in How to: Deploy a report created with Standalone Report Designer.


In case you need to print the report on the server, you can use the ReportProcessor.PrintReport method with properly set printer settings to avoid popups on the server - Hide the print progress dialog when printing a report programmatically.

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
Tags
General Discussions
Asked by
Naren
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or