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

Reset group not working

edited September 2006 in RAP
Hello,

We are using Delphi 5 and Report Builder 6.03. Some RTM files (All Data and
Label Components, Grouping, Header, Footer, Details Bands) are generated
through dynamic coding.



We are dynamically generating DBCalc (Sum, Count Option) Component in Group
Footer.



We are setting Reset Group option of DBCalc Component using the following
stmts:



TSumColumn.ResetGroup : = RReport.Groups[0]

TSumColumn.ResetGroup : = RReport.Groups[1]



The problem is, the Resetting is not working. Report is generated with
cumulative of all Groups.



Please help



With regards,

Bala

Comments

  • edited September 2006
    Hi Bala,

    Where are you setting this value? It may be that you are assigning the
    reset group too late. Are you creating these components in RAP or in Delphi
    code? Which event are you using?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2006
    Hi Nico,

    Thanks for the msg.

    We have not been able to solve the problem. As you mentioned, something may
    be wrong in the sequence/timing. We are not using RAP, made a mistake in
    posting here. The surprising thing is, all other parameters (position,
    width, height, autosize etc.) are OK except for the resetting part.

    Still looking in to it.

    Regards,
    Bala


  • edited September 2006
    Hi Bala,

    Where (which event) are you creating these DBTexts? You might try creating
    them before the report starts generating. This would be before making a
    call to Report.Print.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2006
    Hi Nico,

    We have an automatic report creation form. On that form when user selects a
    report and presses OK button, the code is executed in that OK button event
    handler.

    We are doing the resetting before the reports start generating.

    With regards,
    Balagopal


  • edited September 2006
    Hi Nico,

    The problem got solved.

    We were loading, by mistake, the original RTM file again just before the
    reports start generating. We removed this and it started working.

    Thanks & Regards,
    Bala

  • edited September 2006
    Hi Bala,

    Excellent, glad you got it working :).

    --
    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.