print subreport on new page if not fitting on previous page

Stimulsoft Reports.NET discussion
semtec
Posts: 21
Joined: Wed Oct 29, 2008 2:41 am
Location: Rotterdam

print subreport on new page if not fitting on previous page

Post by semtec »

Hello,

I have a report with the following structure:

ReportTitle
Databand : DataSource: 1
--subrpt1
--subrpt2
--------
--subrpt8
ReportSummary

How can I setup the report, to have a subreport start on a new page, if that report cannot complete on the current page?

Regards,

René
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

print subreport on new page if not fitting on previous page

Post by Ivan »

Hello,

Please try to place the subreport on the Panel, and set the following properties of the Panel:
CanGrow = true, CanShrink = true, CanBreak = false.

Thank you.
semtec
Posts: 21
Joined: Wed Oct 29, 2008 2:41 am
Location: Rotterdam

print subreport on new page if not fitting on previous page

Post by semtec »

It works, thank you!

René
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

print subreport on new page if not fitting on previous page

Post by Alex K. »

Hello,

We are always glad to help you!

Thank you.
semtec
Posts: 21
Joined: Wed Oct 29, 2008 2:41 am
Location: Rotterdam

print subreport on new page if not fitting on previous page

Post by semtec »

Hi,

It has been a long time ago, but I discovered that the suggestion doesn't work completely.
When a subreport covers more than one page, a blank page (WITH the PageHeader and PageFooter of the mainpage) is printed before that subreport.

What can be done?

Regards,
René
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

print subreport on new page if not fitting on previous page

Post by Alex K. »

Hello,

Please send us a simple report with data which reproduces the problem.

Thank you.
semtec
Posts: 21
Joined: Wed Oct 29, 2008 2:41 am
Location: Rotterdam

print subreport on new page if not fitting on previous page

Post by semtec »

Ok,

I will send you a simple report that has the Demo.xml as a datasource.

Regards,

René
Attachments
805.Report.mrt
(55.87 KiB) Downloaded 197 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

print subreport on new page if not fitting on previous page

Post by Ivan »

Hello,

Sorry for the delay with response.
We need more time to prepare the answer for you.

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

print subreport on new page if not fitting on previous page

Post by Ivan »

Hello,

Please use the ChildBands instead of panels.
Please check the report sample in attachment.

Thank you.
Attachments
807.Report modified.zip
(4.67 KiB) Downloaded 349 times
semtec
Posts: 21
Joined: Wed Oct 29, 2008 2:41 am
Location: Rotterdam

print subreport on new page if not fitting on previous page

Post by semtec »

Thank you Ivan, that works!

Although, I think this is more of a workaround than a bug-fix.

Regards,

René
Post Reply