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

Export to .pdf directly (without using the web report viewer)?

3 Answers 635 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
andy
Top achievements
Rank 1
andy asked on 05 Jul 2011, 03:19 PM
Can the report ouputs be sent directly to .pdf without using the web report viewer?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Jul 2011, 04:48 PM
Hi Andy,

You can export reports directly to PDF. To export a report directly, you can use the RenderReport method of the ReportProcessor class. This method converts the contents of the report to a byte array in the specified format, which you can then use with other classes such as MemoryStream or FileStream. You may find useful Exporting Report Programmatically help article.

Greetings,
Peter
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Adi
Top achievements
Rank 1
answered on 05 Aug 2011, 12:14 PM
Hi,

I am trying to do the same thing in Silverlight, and I have taken a look at the following thread:

http://www.telerik.com/help/reporting/exporting-report-programmatically-in-silverlight.html

However, I need to pass few Report Parameters from the client, according to which the report would be generated. When using a reportviewer, I use to do it in the RenderBegin event. I don't get how do I set the parameters in the present scenario, where we use a ReportServiceClient.

Thanks,
Adi
0
Adi
Top achievements
Rank 1
answered on 05 Aug 2011, 01:53 PM
Actaully, never mind, I figured that it could be done through passing NameValueDictionary in the RenderAsync Call.

Thanks,
Adi
Tags
General Discussions
Asked by
andy
Top achievements
Rank 1
Answers by
Peter
Telerik team
Adi
Top achievements
Rank 1
Share this question
or