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

Export multiple PDF from single report programmatically

1 Answer 229 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 10 May 2013, 06:29 PM
Hey everyone.

I'm currently creating a report from an objectDataSource successfully.  The report includes a few layers of grouping.  Rather than create a single PDF, I want to export several instead, one for each of a certain attribute.  It is noteworthy that the attribute I'd like to split by is not added as a group to the report but it can be if needed.

How does one go about doing this?  I would assume the easiest way is to go through the top level of each report and get the appropriate atttribute, and run it through a foreach.  Within the foreach I would generate a PDF.  However, I'm not sure if this is the best idea, and I don't know how to get data from the report in this way.  (To be more specific, getting parameters from my data source at every top level).

Would anyone have suggestions?  Thanks.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 15 May 2013, 04:25 PM
Hi Ben,

It is not very clear to us what your current setup and goals are and therefore we will need some more information regarding your issue.

In general you can use report parameters to filter the data in your report as illustrated in Using Parameters with the SqlDataSource component help article. Thus creating a separate report instance for each different value of some report parameter, the instances can be exported programmatically, in a foreach loop or any other loop that suits your needs.

If you need further help, please elaborate on your scenario and issue.

All the best,
Stef
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Ben
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or