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

TppCrossTab

edited May 2002 in General
Hello All!

I want to have column captions be rotated by 90 degrees.
Is this possible? What can I do to implement this feature?

Also I need to draw multi-line column captions.
How to ...?

Thanks,
Venedict

Comments

  • edited May 2002
    Unfortunately there is nothing built into ReportBuilder currently to support
    rotation. Also the only available behavior of the columns is to stretch to
    accomodate the width of the caption string. You can simulate multi line
    captions by adding rows of dtString type to the matrix after the crosstab
    has been calculated and breaking the caption up across multiple rows. i.e.

    procedure TForm1.ppCrossTab1AfterCalc(Sender: TObject);
    begin

    ppCrossTab1.GridLines := False;

    ppCrossTab1.Matrix.InsertRows(1, 1, dtString);
    ppCrossTab1.Matrix.InsertRows(2, 1, dtString);

    ppCrossTab1.Matrix.Value[0,0] := 'A really, really';
    ppCrossTab1.Matrix.Value[0,1] := 'really, really';
    ppCrossTab1.Matrix.Value[0,2] := 'long caption.';

    end;

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.