Page 1 of 1

Problem with subreports and pagenumbering

Posted: Wed May 16, 2007 8:30 am
by Dave Canto
Hi,

Today I had a problem while creating a report from code and adding 2 subreports to it. When showing the report no pagenumbering was shown.

StiReport MainReport;
TestSubReport1 SubReport1;
TestSubReport2 SubReport2;

MainReport = new StiReport();
SubReport1 = new TestSubReport1();
SubReport2 = new TestSubReport2();
MainReport.SubReports.Add(SubReport1);
MainReport.SubReports.Add(SubReport2);
MainReport.Render(true);
MainReport.Show();


The MainReport is created just from code. I included the .cs-files of SubReport1&2.
The SubReport1 has a ReportFooter with the following expression in it: {PageNumber}/{TotalPageCount}.
The SubReport2 has no pagenumbering at all.

When the MainReport is rendered and shown, the pagenumbering of SubReport1 has disappeared.
When I render SubReport1 on its own, the pagenumbering is clearly shown. Maybe there's a little bug when using subreports and pagenumbering together?

Problem with subreports and pagenumbering

Posted: Wed May 16, 2007 8:58 am
by Edward
Please use the following method to Add a SubReport to the report:

Code: Select all

public void Add(StiReport report, bool resetPageNumber, bool printOnPreviousPage)
Thank you.

Problem with subreports and pagenumbering

Posted: Thu May 17, 2007 7:37 am
by Guest
We will fix this problem on the next Wednesday.

Thank you.

Problem with subreports and pagenumbering

Posted: Tue May 22, 2007 7:13 am
by Vital
Problem solved. Please check build from 21 May.

Thank you.

Problem with subreports and pagenumbering

Posted: Thu May 24, 2007 3:24 am
by Dave Canto
I installed the latest build and results are magnificent. Pagenumbering is working now also when using subreports. Many thanks to the Stimulsoft Software Team! Keep up the good work!

Problem with subreports and pagenumbering

Posted: Thu May 24, 2007 3:28 am
by Edward
Thank you for the good words.

Thank you.