Page 1 of 1

Distance between DataBand and SubReport

Posted: Mon Jun 28, 2010 6:02 am
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...

Distance between DataBand and SubReport

Posted: Mon Jun 28, 2010 6:40 am
by Andrew
Hello,

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

Thank you.

Distance between DataBand and SubReport

Posted: Mon Jun 28, 2010 7:18 am
by LukasT
Example has been attached...

Distance between DataBand and SubReport

Posted: Tue Jun 29, 2010 7:43 am
by Ivan
Hello,

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

Thank you.

Distance between DataBand and SubReport

Posted: Tue Jun 29, 2010 8:54 am
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...

Distance between DataBand and SubReport

Posted: Tue Jun 29, 2010 4:23 pm
by Jan
Hello,

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

Thank you.

Distance between DataBand and SubReport

Posted: Wed Jun 30, 2010 1:34 am
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...

Distance between DataBand and SubReport

Posted: Thu Jul 01, 2010 12:45 am
by Jan
Hello,

In this case internal sub reports is best way.

Thank you.