Adding a pre-rendered report to an existing report

Stimulsoft Reports.NET discussion
Post Reply
spv123
Posts: 26
Joined: Mon Oct 02, 2006 8:07 am
Location: Sheffield, UK

Adding a pre-rendered report to an existing report

Post by spv123 »

I want to build a report which consists of a number of identical pages built from another report. Each page is built from a number of text fields that use variables set from the dictionary. So, I create a report, set all the variables, compile and render it. I now want to add the rendered page to the new report.

I thought I could do this by saying something like Report1.RenderedPages.add(tmpReport.renderedpages(0))

This just gives me a report with empty pages. tmpReport is rendered correctly (tested by printing as I go along).

what do i need to do to achieve this ??

Thanks in advance
Simon
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Adding a pre-rendered report to an existing report

Post by Vital »

By default collection contain one empty page. Clear this collection before update:

report.RenderedPages.Clear();

For also please check property SubReports of report.

Thank you.
Post Reply