Home Subreports

Rowheight of a Crosstab

edited February 2004 in Subreports
I've seen this comments in a old message of 2001 from Nard


1. Check out crosstab example 127 (ct0127.pas) located in
RBuilder\Demos\Crosstab\Demo.dpr.
It show ane example of controlling the captions.

Using the Crosstab events you can control much of the formatting and
display. However you can specifiy a width/height for columns.


Ok, chaning captions works fine and i'm using it for quite a while, but
chaning the height of a 'band' (1 detail row) is still unknown to me, what
property has to be changed for this or, how could we do this.

Kind Regards

Comments

  • edited February 2004
    Hi Harry,

    Sorry, the crosstab component measures the row height and width based on the
    font size of the largest caption. There is no way to alter this size other
    than creating a new crosstab renderer.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    Will the crosstab recalculate if you decrease the size of the font of the
    field, because, if so, honestly, you are taking to much blank spaces between
    2 rows !!
    I've changed all font to Arial8 point and still only 20 rows get on a
    landscape paper, in a regular report i'm getting over 34 !!!
  • edited February 2004

    I researched this by looking at the source code. There is a margin of 1588
    microns being added to the cell on each side. I calculated this in inches to
    be 0.0625 of an inch. The margin is defined as a constant, see ppCTMain,
    there is margin declared at the top: ciTextMargin.



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2004
    Nard,

    Honestly, i don't like to go in discussions with you guys because i really
    admire the ReportBuilder-guys. Its a great product.

    But, i will attach a very small example that proves that it is not 0,0625
    inch or 0,15cm, even the bottom margin between the last line and the top op
    the next this should be 3mm, in reality it goes up to 6mm.

    Not a huge problem as we can 'change' this behaviour.
    Is it correct that i must open the package rbCT76 adn recompile it. Put the
    resulst back into RBuilder\Lib ???

    Harry
  • edited February 2004

    I did not write that code so I could be wrong. Since it is a margin, it is
    added twice.

    In ppCtRend there is code like this, where the CaptionWidth is calculated as
    the TextWidth and then the margin is added on.


    liCaptionWidth := liCaptionWidth + (ciTextMargin * 2);



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.