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

Export multiple documents to pdf

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jose Ronaldo
Top achievements
Rank 1
Jose Ronaldo asked on 24 Jan 2017, 10:41 AM
Hi,
I've seen the forum post of how to export a reportbook to a pdf file. However, I can't export my report book correctly.
I have two (or more) reports with subreports on the detail. My collection of reports belongs to the same report class  - DanfeReport(which inherits from Telerik.Reporting.Report). 
I have included all reports in ReportBook and rendered into a pdf result. Then I wrote it into a file, using Filestream.
The document was created with 2 pages as expected, but the content was incorrect because both pages have the same content. 
Can you help me?
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Jan 2017, 12:46 PM
Hi,

The reports on your screenshots contain different information, please check the headers  and the FL fields.

Double check which reports are included in the ReportBook.Reports collection (prior to R1 2017) and in the ReportBook.ReportSource collection (R1 2017 and newer versions). The individual reports will be rendered each on a new page. If reports have report parameters, set each parameter's Mergeable to false to avoid using the same paramater value for all reports.


For more details, please check the local ReportBook example and the ReportBook help article.

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
Jose Ronaldo
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or