Page 1 of 1

Adding a pre-rendered report to an existing report

Posted: Tue Oct 03, 2006 10:59 am
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

Adding a pre-rendered report to an existing report

Posted: Wed Oct 04, 2006 2:29 am
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.