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

Export single report to multiple pdf files

2 Answers 512 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Muneeb
Top achievements
Rank 1
Muneeb asked on 08 Jul 2008, 11:36 AM
Hi,

I'm facing a scenario in which i have to export the generated report into multiple pdf files based on the number of groups in the report. let's say that i have grouped the data based on departments [3 departments i have in data] in the report. the report, in turn, will display the data grouped by department [there would be 3 groups, of course]. now, my scenario is that when i export this report to pdf, 3 pdf files should be created, one for each grouped data [department]. Is this possible using the control?

I thought of programmatically saving the pdf but i don't know what to do after i get the rendered report in byte array. i mean how do i separate group info in the byte array that contains the rendered report?

any help / workaround would be highly appreciated!

2 Answers, 1 is accepted

Sort by
0
Milen | Product Manager @DX
Telerik team
answered on 09 Jul 2008, 09:35 AM
Hi Muneeb,

It is not possible to slice a PDF file and the result to be a valid PDF file. To achieve the desired functionality you need to programmatically render multiple times the report in PDF format applying different filters so that the end result is separated PDF files sliced by some condition. Find attached a sample report with defined filter and report parameter used in the filter. Also you will find windows application demonstrating how to change the value of the report's parameter and export the report to PDF.

The method that export the report programmatically in PDF format is taken from this KB article.

Let us know if you need further assistance. 

Best wishes,
Milen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Muneeb
Top achievements
Rank 1
answered on 09 Jul 2008, 11:49 AM
Hi Milen,

I have only word for it: NICE! :)

Please accept my sincere thanks! 
Tags
General Discussions
Asked by
Muneeb
Top achievements
Rank 1
Answers by
Milen | Product Manager @DX
Telerik team
Muneeb
Top achievements
Rank 1
Share this question
or