Group2OnGetBreakValue With No Group2 in report.
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
OnGetBreakValue event. Anything else I can try?
David Looney
Autostar Solutions, Inc.
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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.
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com