Problem with subreports and pagenumbering

Stimulsoft Reports.NET discussion
Post Reply
Dave Canto
Posts: 18
Joined: Mon Jan 22, 2007 11:51 am
Location: Belgium

Problem with subreports and pagenumbering

Post 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?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with subreports and pagenumbering

Post 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.
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Problem with subreports and pagenumbering

Post by Guest »

We will fix this problem on the next Wednesday.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Problem with subreports and pagenumbering

Post by Vital »

Problem solved. Please check build from 21 May.

Thank you.
Dave Canto
Posts: 18
Joined: Mon Jan 22, 2007 11:51 am
Location: Belgium

Problem with subreports and pagenumbering

Post 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!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with subreports and pagenumbering

Post by Edward »

Thank you for the good words.

Thank you.
Post Reply