Distance between DataBand and SubReport

Stimulsoft Reports.NET discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Distance between DataBand and SubReport

Post by LukasT »

I have made some example with one report and subreport. Main report has DataBand with some content and one SubReport field. This subreport is external, and is loaded using GetSubReport event. But when i show final report in Viewer, between DataBand content and embedded external SubReport is the same height of distance like height of previous DataBand content... Is this bug or my problem with design?
Thank you...
Attachments
465.SubReportTest.zip
(39.35 KiB) Downloaded 202 times
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Distance between DataBand and SubReport

Post by Andrew »

Hello,

Can you please send us a simple test application, which reproduces the issue?

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Distance between DataBand and SubReport

Post by LukasT »

Example has been attached...
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Distance between DataBand and SubReport

Post by Ivan »

Hello,

The problem is solved.
The patch will be available in the next prerelease build from 5-Jul-2010.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Distance between DataBand and SubReport

Post by LukasT »

Thank you Ivan for fast repair ;-)
But I have realised, that the solution with GetSubReport is not optimal due to speed of compiling. Faster is to insert subreport object as StiPage into StiSubreport and than compile. But never mind ;-)
Have a nice day...
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Distance between DataBand and SubReport

Post by Jan »

Hello,

Yes that have sense, but you can load subreport from assembly for example and avoid compilation.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Distance between DataBand and SubReport

Post by LukasT »

Hello,
in case of static subreport... but we have subreport in DataBand and each subreport must render specific data using the key from parent report... and if I know, this operation needs to compile the subreport... Maybe GetSubReport is optimalized mainly for loading static subreports ...
Thank you...
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Distance between DataBand and SubReport

Post by Jan »

Hello,

In this case internal sub reports is best way.

Thank you.
Post Reply