Ignore errors and continue possible when errors occurs during Template.LoadfromStream(AStream)
Hi,
Is it possible to get the 'ignore errors and continue' dialogue box at
runtime (End user) when errors occurs during
Template.LoadfromStream(AStream) like in delphi design mode? Some End user
reports kept in a database contain obsolete event handlers (fi
OnEndFirstPass) which where removed from the design mode report.
Greetings,
Filip Moons
Is it possible to get the 'ignore errors and continue' dialogue box at
runtime (End user) when errors occurs during
Template.LoadfromStream(AStream) like in delphi design mode? Some End user
reports kept in a database contain obsolete event handlers (fi
OnEndFirstPass) which where removed from the design mode report.
Greetings,
Filip Moons
This discussion has been closed.
Comments
Which version of ReportBuilder are you using? In my testing with RB 10.03
and Delphi 7, the Template Error dialog showed up as expected when there
were unavailable components or events defined in the template code.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
We are still on RB 7 because of Delphi 5. It shows up at design time when
using delphi.
At runtime
- Using AChildReport.Template.LoadfromStream(AStream) just throws an
exception, no dialogue box.
- Using tppDesigner component in our application: menu 'LoadSubReport ...'
just throws an exception and the report isn't changed (Same as before doing
'LoadSubReport'), no dialogue box either.
Greetings,
Filip Moons
In my testing with RB 7.04 and Delphi 5, the Template Error dialog shows up
as expected as well. Are you running a multi-threaded application? If you
take a look a the source in the ppTmplat.pas file, inside the
TppTemplate.LoadFromStream routine you will see that the lReader.OnError
event (TReader object) is only assigned if it is a single threaded app. It
is in the OnError event that the Template Error dialog is displayed
(TppTemplate.LoadError).
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com