Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

phStatic preventing subreport in column?

edited August 2001 in General
I have a master -> detail -> detail report, using nested subreports. The
intermediate subreport is laid out for columns, and the low-level subreport
is in the column's Detail band. The problem is, the low-level subreport
never appears when the report runs. I can put a text labels in the Detail
band above and below the subreport, and they appear properly. I put code in
to show the subreport's Visible property at run-time, and it is True.

One thing I did notice that might be a problem: The documentation says that
a subreport with PrintBehavior of pbChild (like both of my subreports)
should be in a detail band with PrintHeight of phDynamic. For some reason,
the column's detail band is set to phStatic and will not allow me to set it
to phDynamic. When I try to change it to phDynamic in the Object Inspector,
it snaps right back to phStatic.

If I move the low-level subreport from the column's Detail band into the
Column Header band, which has PrintHeight of phDynamic, it
displays.correctly.

I'm using Delphi 5 SP1, RB 5.56, Win2000 Pro SP2, P3-500, 256 MB, HP
LaserJet 6L.

Richard Biffl
rbiffl@blacklettersoftware.com

Comments

  • edited August 2001
    You're probably using a left to right column traversal, and which this
    configuration currently does not support dynamic height detail bands. You
    should be able to put a subreport in the detail band and then define the
    columns in the suberport. The other alternative is to use a fixed style
    subreport which will print within the height that it has been assigned in
    the designer..


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.