Subreports and Keeptogether
Hello,
I am developing using Report Builder (v. 6.03 for Delphi 5), and observing a
strange problem:
The nature of the problem relates to the notion of "Keeptogether". I will
try to describe the organization of the report first.
- The "Main" report consists of a detail band which has a subreport
(subreport "A").
- Subreport "A" contains a header, a group header, and a detail band. The
detail band contains two different subreports (Subreport "B" and Subreport
"C").
- Subreport "B" has a group header and a detail band that reports some
simple information.
- Subreport "C" has a detail band that reports some simple information.
In all of the above detail bands, the "keeptogether" property is set to
FALSE.
The report seems to work with no problem and as exepcted, with one
exception...if subreport "B" does not fit on the current page, it starts on
the next page - despite the "keeptogether" property being set to false. The
really strange thing is you only observe this behavior on the FIRST page of
the report. On subsequent pages, it behaves just as you would anticipate.
I know more information is probably needed to figure this one out, but I
wanted to float it out there to see if anybody has run into this problem.
The only thing I can think of is that having nested the subreports in this
manner has somehow caused this strange problem. Anybody have any thoughts? I
would be happy to post more information if anybody has ideas.
Thanks,
Dave B.
I am developing using Report Builder (v. 6.03 for Delphi 5), and observing a
strange problem:
The nature of the problem relates to the notion of "Keeptogether". I will
try to describe the organization of the report first.
- The "Main" report consists of a detail band which has a subreport
(subreport "A").
- Subreport "A" contains a header, a group header, and a detail band. The
detail band contains two different subreports (Subreport "B" and Subreport
"C").
- Subreport "B" has a group header and a detail band that reports some
simple information.
- Subreport "C" has a detail band that reports some simple information.
In all of the above detail bands, the "keeptogether" property is set to
FALSE.
The report seems to work with no problem and as exepcted, with one
exception...if subreport "B" does not fit on the current page, it starts on
the next page - despite the "keeptogether" property being set to false. The
really strange thing is you only observe this behavior on the FIRST page of
the report. On subsequent pages, it behaves just as you would anticipate.
I know more information is probably needed to figure this one out, but I
wanted to float it out there to see if anybody has run into this problem.
The only thing I can think of is that having nested the subreports in this
manner has somehow caused this strange problem. Anybody have any thoughts? I
would be happy to post more information if anybody has ideas.
Thanks,
Dave B.
This discussion has been closed.
Comments
If possible, please send an example demonstrating this behavior in .zip
format to support@digital-metaphors.com and we'll take a look at it for you.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com