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

Convert Telerik reortView in PDF

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gerry Connolly
Top achievements
Rank 1
Gerry Connolly asked on 15 Jul 2015, 02:04 PM

Hi Everyone

 

ASP MVC project.
I use Q1 2015 SP1 (9.0.15.324)
I have page with Html.TelerikReporting().ReportViewer()
There are parameters which user can set. I want to crate functionality which will send email with attached pdf report from this ReportViewer.
What the best way to implement this functionality? Could I export Report on HTML page array bytes (PDF) in JavaScript ?​

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 20 Jul 2015, 10:57 AM
Hi,

Below is a quote from my post in your support ticket on the same question:
"You can modify the viewer's HTMl template and add custom UI handling the exporting in PDF and mailing of the report. For example add a button which click event at the client executes a post to a custom controller's action where the report is e-mailed (Send Telerik Report as email attachment). The currently selected parameters values can be obtained from the viewer's reportSource and submitted with the post request.

The attached demo project illustrates the suggestion (the example includes posting only the current report's name, but can be extend to post more information about the current parameters - check Index.cshtml).
"

For anyone concerned, the project is attached in this thread as well.

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
Gerry Connolly
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or