I am making a listing in the CrossTab and in execution time I make a display format for a column. When processing the first time it functions however when process the second time does not function. What should be? Somebody could help me? Diogo
The version of ReportBuilder is Report Builder Enterprise Edition 6.03.
I am making a work with the CrossTab, where in execution time I need to format a column (string 30) to show only 10 characters. To format this column I?m using then event ppCrossTab.FormatCell:
procedure TFrmLst.ppCrossTabFormatCell(Sender: TObject; aElement: TppElement; aColumn, aRow: Integer); begin if (aColumn = 3) and (aRow > 2) then aElement.DisplayFormat := '0000000000'; end;
When process the first time the fomattting is correct, but when I go to process second, third time, etc, it does not make the formatting.
I apologise, I am still a bit unclear about what you mean by "process a second time." Are you running the report once, closing it, then running it again? Or are you processing the same crosstab component multiple times in the same report? If you place a break point inside the ppCrossTabFormatCell event, does your code fire each time the crosstab is processed?
I have a program, and this program has a report made with the Cross Tab. When I execute the report the first time, the fomattting of the column is correct, but if I execute it for the second time, third, etc, it does not make the formatting correctly. I?m running the report once, closing it, then running it again.
In my testing, I am unable to recreate this behavior. Are you loading a template at runtime by chance? As a test, try commenting out all your event handlers and see if that makes a difference.
Comments
me the exact steps you are taking to recreate this issue.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The version of ReportBuilder is Report Builder Enterprise Edition 6.03.
I am making a work with the CrossTab, where in execution time I need to
format a column (string 30) to show only 10 characters. To format this
column I?m using then event ppCrossTab.FormatCell:
procedure TFrmLst.ppCrossTabFormatCell(Sender: TObject; aElement:
TppElement; aColumn, aRow: Integer);
begin
if (aColumn = 3) and (aRow > 2) then
aElement.DisplayFormat := '0000000000';
end;
When process the first time the fomattting is correct, but when I go to
process second, third time, etc, it does not make the formatting.
Thank you for atention.
Diogo
na
however
I apologise, I am still a bit unclear about what you mean by "process a
second time." Are you running the report once, closing it, then running it
again? Or are you processing the same crosstab component multiple times in
the same report? If you place a break point inside the ppCrossTabFormatCell
event, does your code fire each time the crosstab is processed?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
For example:
I have a program, and this program has a report made with the Cross Tab.
When I execute the report the first time, the fomattting of the column is
correct, but if I execute it for the second time, third, etc, it does not
make the formatting correctly. I?m running the report once, closing it, then
running it again.
Thanks...Diogo
In my testing, I am unable to recreate this behavior. Are you loading a
template at runtime by chance? As a test, try commenting out all your
event handlers and see if that makes a difference.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com