Friday, February 10, 2012

Border problem with subreports containing tables

I have written a main report that, for the sake of modularity,
consists of several subreports that can be switched in and out. The
main report and subreports do not include borders as part of their
internal properties. When adding each subreport item to the main
report I have applied left and right borders to that subreport item's
properties. The reason I have not applied the borders to the main
report is that I only want borders on the subreports.
The problem I am having occurs when a subreport consists only of a
table. In such cases, the borders are only rendering for the height
of the table, i.e. if a table is only half a page high then the
borders are only half the page height, whereas I want the borders to
take up the entire page height. I can get around this by defining the
height of the subreport to match the height of the main report, which
forces the borders to be excatly the defined height. However, this
has the unwanted side-effect (bug?) of adding a blank page (with
borders) to the main report inmmediately after the subreport.
If anyone has any ideas for how to achieve page height borders in this
scenario I would be very grateful to hear them.Increasing the height of the subreport will give you blank pages, the
height should be kept min ( abt .115 in), what happens is subreport
will expand to accomodate the data.
what border are you referring to? the border of the subreport table?
do u want like a sqare border for each subreports you include in the
main report?
Couldnt really understand your question.
let me know in detail..maybe i can help.
Regards,
Amit Bhandari.
jcbpalmerpcdev@.yahoo.co.uk (Julian) wrote in message news:<7a53e044.0410271336.4df0aa97@.posting.google.com>...
> I have written a main report that, for the sake of modularity,
> consists of several subreports that can be switched in and out. The
> main report and subreports do not include borders as part of their
> internal properties. When adding each subreport item to the main
> report I have applied left and right borders to that subreport item's
> properties. The reason I have not applied the borders to the main
> report is that I only want borders on the subreports.
> The problem I am having occurs when a subreport consists only of a
> table. In such cases, the borders are only rendering for the height
> of the table, i.e. if a table is only half a page high then the
> borders are only half the page height, whereas I want the borders to
> take up the entire page height. I can get around this by defining the
> height of the subreport to match the height of the main report, which
> forces the borders to be excatly the defined height. However, this
> has the unwanted side-effect (bug?) of adding a blank page (with
> borders) to the main report inmmediately after the subreport.
> If anyone has any ideas for how to achieve page height borders in this
> scenario I would be very grateful to hear them.

No comments:

Post a Comment