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

Group2OnGetBreakValue With No Group2 in report.

edited October 2006 in General
I've got a strange problem that I'm having trouble tracking down. I'm using
Delphi 5 Pro with Report Builder 7.04 Enterprise. When I run this report I
get an error of some sort in the Group2-OnGetBreakValue the only thing is I
have no Group2 or Group2OnGetBreakValue event. I'm loading the report
template into the report object at run time to be able to run multiple
reports from the same report object at different times. Any help on this
would be appreciated.

David Looney
Autostar Solutions, Inc.

Comments

  • edited October 2006
    Hi David,

    My first guess would be that the template you are loading was saved down
    with this event implemented, then perhaps the group was removed but the
    event was not. Try either loading the template in the designer and ignoring
    the error and resaving or perhaps saving the template in ASCII format and
    manually remove all Group2 OnGetBreakValue references from the definition.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2006
    Well I pulled it up as a text file and found no references to the group2
    OnGetBreakValue event. Anything else I can try?

    David Looney
    Autostar Solutions, Inc.

  • edited October 2006
    Hi David,

    What error are you receiving? Are you able to ignore the error and re-save
    the template? If you search the text file for Group2 only do you find
    anything? Delphi must be getting this from somewhere (either the template
    code or .dfm code).

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2006
    The error that I'm getting with this is Could not run program:
    Group2OnGetBreakValue. That is the exception that is being raised. We are
    loading a template at run time. We are building all of the data objects
    needed by the current report before we load the template to make sure the
    template sees all the datapipelines correctly. After we run the report we
    close and destroy all associated data and report components to start with a
    clean slate on the next report the user want's to run.

    David Looney
    Autostar Solutions, Inc.

  • edited November 2006
    Hi David,

    This is a RAP error. Are you sure you do not have any RAP code in your
    template that is causing this error? Try deleting all RAP code from the
    template, saving, then readding it. If this does not help, you may have a
    corrupt template file and will most likely need to recreate the report from
    scratch.

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