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

Can I export the report on the server side programmatically?

3 Answers 448 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 18 Aug 2014, 04:38 AM
Hi everyone.

Can I export the report on the server programmatically?
I've read a KB below. It could export the report to pdf on client side.
http://www.telerik.com/support/kb/reporting/styling-and-formatting-reports/details/exporting-a-report-to-pdf-programmatically

My goal is sending an email with an attachment of pdf exported by a report programmatically.

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 20 Aug 2014, 11:15 AM
Hello Will,

In the given example the report is processed and rendered in PDF on the server, and the generated bytes are sent back to the client with the Response object. Instead of writing the result bytes in the Response, you can save the file on the server - Exporting Report Programmatically.

A full example of sending a report as an e-mail is available in the Send Telerik Report as email attachment code library.

I hope the above information helps you.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mari
Top achievements
Rank 1
answered on 20 Mar 2017, 11:18 AM

Dear Sir

How to export Report Book to Pdf Format Directly??

0
Stef
Telerik team
answered on 22 Mar 2017, 05:06 PM
Hello Mari,

You can create a ReportBook in code. The result document instance can be wrapped in an InstanceReportSource that replaces the TypeReportSource in the example in Exporting Report Programmatically.

Before you test the above code, please upgrade your project to the latest Telerik reporting internal build v11.0.17.320 by using the MSI file from your Telerik account - Download s- Reporting - Latest Internal Build.


I hope this helps.

Regards,
Stef
Telerik by Progress
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
Will
Top achievements
Rank 1
Answers by
Stef
Telerik team
Mari
Top achievements
Rank 1
Share this question
or