Problem with subreports and pagenumbering
-
- Posts: 18
- Joined: Mon Jan 22, 2007 11:51 am
- Location: Belgium
Problem with subreports and pagenumbering
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?
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
Please use the following method to Add a SubReport to the report:
Thank you.
Code: Select all
public void Add(StiReport report, bool resetPageNumber, bool printOnPreviousPage)
Problem with subreports and pagenumbering
We will fix this problem on the next Wednesday.
Thank you.
Thank you.
Problem with subreports and pagenumbering
Problem solved. Please check build from 21 May.
Thank you.
Thank you.
-
- Posts: 18
- Joined: Mon Jan 22, 2007 11:51 am
- Location: Belgium
Problem with subreports and pagenumbering
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
Thank you for the good words.
Thank you.
Thank you.