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

Cross tab component

edited August 2005 in General
How can I apply custom format for the fields in a crosstab report ?

I figured out how to do it in the Total(s) value using the
OnGetTotalValueText as follow:

procedure TfmTotalMonthlyAllLocations.ppCrossTab1GetTotalValueText(
Sender: TObject; aElement: TppElement; aColumn, aRow: Integer;
const aDisplayFormat: String; aValue: Variant; var aText: String);
begin
aText := FloatToStrF(aValue, ffCurrency,15,2);
end;

But how to do it on the other values that are not grand totals ?

I looked at the GetValueText but I don't know how to identify the related
field
procedure TfmTotalMonthlyAllLocations.ppCrossTab1GetValueText(
Sender: TObject; aElement: TppElement; aColumn, aRow: Integer;
const aDisplayFormat: String; aValue: Variant; var aText: String);
begin

end;


Thanks a lot for any help.

CBenac
cbenac@bellsouth.net

Comments

  • edited August 2005
    Never mind the post. I figured it out. I didn't know it was so easy.
    Just click the layout button.
This discussion has been closed.