ReportBuilder 12.04 Enterprise, Delphi 7 vs. Delphi XE, XE version generates exception on program ex
Using Report Builder 12.04 Enterprise.
Migrating from Delphi 7 to Delphi XE.
I have a program that contains a ppReport and a ppDesigner.
The ppDesigner has the ppReport as the Report property.
The program allows you to select an RTM file from the disk, load the RTM
into the ppReport, then call up the designer via ppDesigner.
All works well in the copy compiled under Delphi 7.
On the copy compiled under Delphi XE, if you actually load an RTM and view
the report template in the designer, when you later exit the application,
exceptions are generated. If you do not actually go into the designer, the
exceptions are not generated.
Sample exceptions on program exit:
e.g. Access violation at address xxxxxx,
e.g. Runtime error 216 at address xxxxxxx.
I do not get the errors on the identical situation on the Delphi 7 version.
Also, I can make the error go away in the Delphi XE version by placing a
call to ppReport.Template.New AFTER returning from calling up the designer
in the Delphi XE version.
As yet, I have not been able to generate a simple example program that
replicates this issue.
ppReport1.Template.FileName := ProgDir + Rtm;
ppReport1.Template.LoadFromFile;
ppReport1.TextSearchSettings.Enabled := True;
ppReport1.Template.Format := ftASCII;
ppReport1.AllowPrintToFile := True;
ppReport1.PDFSettings.ScaleImages := False;
ppDesigner1.DataSettings.AllowEditSQL := True;
ppDesigner1.ShowModal;
ppReport1.Template.New; // fixes issue
Has anyone else seen anything like this - or have any idea what is causing
the error on program exit?
Thanks, Steve Elliott
Migrating from Delphi 7 to Delphi XE.
I have a program that contains a ppReport and a ppDesigner.
The ppDesigner has the ppReport as the Report property.
The program allows you to select an RTM file from the disk, load the RTM
into the ppReport, then call up the designer via ppDesigner.
All works well in the copy compiled under Delphi 7.
On the copy compiled under Delphi XE, if you actually load an RTM and view
the report template in the designer, when you later exit the application,
exceptions are generated. If you do not actually go into the designer, the
exceptions are not generated.
Sample exceptions on program exit:
e.g. Access violation at address xxxxxx,
e.g. Runtime error 216 at address xxxxxxx.
I do not get the errors on the identical situation on the Delphi 7 version.
Also, I can make the error go away in the Delphi XE version by placing a
call to ppReport.Template.New AFTER returning from calling up the designer
in the Delphi XE version.
As yet, I have not been able to generate a simple example program that
replicates this issue.
ppReport1.Template.FileName := ProgDir + Rtm;
ppReport1.Template.LoadFromFile;
ppReport1.TextSearchSettings.Enabled := True;
ppReport1.Template.Format := ftASCII;
ppReport1.AllowPrintToFile := True;
ppReport1.PDFSettings.ScaleImages := False;
ppDesigner1.DataSettings.AllowEditSQL := True;
ppDesigner1.ShowModal;
ppReport1.Template.New; // fixes issue
Has anyone else seen anything like this - or have any idea what is causing
the error on program exit?
Thanks, Steve Elliott
This discussion has been closed.
Comments
Please send a simple example demonstrating the issue that I can run on
my machine in .zip format to support@digital-metaphors.com and I'll take
a look at it for you.
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
replicates the issue.
Included is a test.rtm report that consistently generates the error after
being viewed in the designer.
It uses the demo database(s) installed with Delphi. Master-Detail with a
subreport containing detail records.
an email to support@digital-metaphors.com to receive the patch.
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
similar problem appeared in our software as well. While we were working
in BDS 2006 with RB 12 everything it was okay, now under Delphi XE and
RB 12.04 I get AccessViolations on ppReport.Template.LoadFromFile. The
code for printing is the same for more than a year.
The problem is even bigger as TppReport serves for printing around 20
different invoices and reports and it can be joined together with
TppDesigner to edit them.
So if the connection TppDesigner.Report is empty, the invoices can be
printed without any problems but one can't edit RTM's. If I establish
the connection, then editing RTM's is possible but printing invoices is
impossible due to the AV on ppReport.Template.LoadFromFile.
Nico, do You have any new update in mind? I already asked for a patch a
week or so ago, today I see this one....?
With best regards,
Goran Brumen
Audax d.o.o.
Have you tried applying the patch? If not (or you have not received it)
please contact support@digital-metaphors.com and we will send it to you
as soon as possible.
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com