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

Display Format in the CrossTab!

edited April 2005 in General
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

Comments

  • edited April 2005
    Which version of ReportBuilder/Delphi are you currently using? Please give
    me the exact steps you are taking to recreate this issue.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2005
    Hi Niko,

    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


  • edited April 2005
    > Hi Niko,
    na
    however
  • edited April 2005
    Hi Diogo,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2005
    Hi Niko,
    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

  • edited April 2005
    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.