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

Export PDF of report directly to Outlook

3 Answers 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Veteran
Jason asked on 29 Jun 2020, 08:57 PM

Trying to display a report, and give an option to export the report directly to Outlook.

I'm using the HTML5 viewer in ASP.NET MVC, and ideally this would mean the user would click a button at the top beside Download, and this would open up Outlook with the actual report file already attached and ready to be emailed.

3 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 02 Jul 2020, 02:00 PM

Hi Jason,

The HTML5-based report viewers provide the functionality to send reports in a specified document format with an e-mail message. By default the send mail message button is hidden. Before enabling it, there is an additional requirement. The SendMailMessage method should be implemented first so that the e-mail messages will be sent server-side. This method should take place in your ReportsController.cs file. More information about implementing the server-side code is available at Implement Send Mail Message help article.

Once the method is implemented, the send mail message toolbar button can be enabled by adding the viewer SendEmail initialization option. 

@(Html.TelerikReporting().ReportViewer()
    .Id("reportViewer1")
    .ServiceUrl(Url.Content("~/api/reports"))
. . . 
    .SendEmail(new SendEmail { Enabled = true })
)

Additional resources:
Send Mail Message
Report Viewer Initialization

You might also refer to our examples that are located in the product installation path, i.e. 

C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples.

Please let me know if you have any additional questions.

 

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Jason
Top achievements
Rank 1
Veteran
answered on 02 Jul 2020, 04:04 PM

I need the email sending to happen client side, however, by means of handoff to Outlook.

The conditions change too often (To, From, Body, etc) to be able to do it server side.

0
Neli
Telerik team
answered on 07 Jul 2020, 11:55 AM

Hello Jason,

Basically, what you can do with our product is to use the REST to send the email through the configured SMTP server. Can you give us more details about the scenario, so we can try to provide further options?

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Jason
Top achievements
Rank 1
Veteran
Answers by
Neli
Telerik team
Jason
Top achievements
Rank 1
Veteran
Share this question
or