Problems with Subreports

Stimulsoft Reports.NET discussion
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems with Subreports

Post by HighAley »

Hello.

We have made an improvement.
Please, check our next prerelease build that will be available on Friday.

Thank you.
MatthiasU
Posts: 68
Joined: Mon Sep 14, 2015 8:33 am

Re: Problems with Subreports

Post by MatthiasU »

Hello,

yesterday, you have released v2016.1.20 and I found the following change in the Release Notes:
Engine V2. The SubReport sizeis now correctly calculated if it is located directly on the page.
Sounds like a change for my problem :) But the issue still appears :(


Regards,
Matthias
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Problems with Subreports

Post by Ivan »

Hello,

We checked and found out that for technical reasons, the change was not included in the build.
Tomorrow we remake the build.
Please download it again tomorrow.

Thank you.
MatthiasU
Posts: 68
Joined: Mon Sep 14, 2015 8:33 am

Re: Problems with Subreports

Post by MatthiasU »

Hello,

I have tested the problem with Rel. 2016.1.21 and it works very well :) Thank you very much!

Maybe, you can help me on a similar problem? Now, I have to add the subreports on a databand with setting NewPageBefor=TRUE. But in this case, all subreport pages are printed in direct succession. I would expect a new page for each subreport page and a new page for each databand record :(

Is there a way to achieve this behaviour?

Please see attachement for example.


Many thanks & Regards,
Matthias
Attachments
ReportWithSubreport.mrt
(4.17 KiB) Downloaded 313 times
Module.mrt
(5.49 KiB) Downloaded 311 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problems with Subreports

Post by Alex K. »

Hello,

In this case, you can set the following option:

Code: Select all

Stimulsoft.Report.StiOptions.Engine.RenderExternalSubReportsWithHelpOfUnlimitedHeightPages = true;
And the following code in the SubReport for the paging emulatation:

Code: Select all

if (Line > 1 && (Line - 1) % 10 == 0) Engine.NewPage();
Thank you.
Attachments
ReportWithSubreport.mrt
(4.24 KiB) Downloaded 292 times
Module.mrt
(5.58 KiB) Downloaded 228 times
MatthiasU
Posts: 68
Joined: Mon Sep 14, 2015 8:33 am

Re: Problems with Subreports

Post by MatthiasU »

Hello,

thanks for your respond.

I have to implement the paging in each subreport by myself? That's not very funny... :shock:

The attached sample was just a simplified sample to reproduce the issue. In real cases, our subreports are lot more complex and it would be really difficult to implement the paging. The great paging was a main reason for us, to choose your reporting tool!

I would be very grateful, if you can fix this issue.


Many thanks & Regards,
Matthias
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problems with Subreports

Post by Alex K. »

Hello,

The sub-report is rendered on a page with unlimited height because it's impossible to know the end size of the sub-report component.
In this case, you need to implement the paging with additional code or implement your task on the main page without the SubReport.

Thank you.
Post Reply