I create (not show!) a form F containing a QuickRep component containing a QrChart in a QrBand. I call QuickReport.ShowModeless. In the ‘OnPreview’ event of the QuickRep component I set a QrPreview at another form as destination of printing the QuickReport:
QRPreview1.QRPrinter := TQRPrinter(Sender);
On deleting the form F the error 1400 (Invalid window handle) occurs on destroying the QrChart component (which in fact really has not an associated window). Without the QrChart everything is ok.
The problem exists with Delphi 6, C++Builder 5, C++Builder 6 with QuickReport Pro 3.62, 4.0 and TeeChart 7.03, 7.04
The only workaround I found is a call of F.Show before QuickReport.ShowModeless. Remember: This is not necessary for all other components in a QuickReport!
Could you please fix the problem?
Thanks in advance
Behalves Bert Kreisel
QrChart and QrPreview
-
- Newbie
- Posts: 23
- Joined: Wed Jan 12, 2005 5:00 am
- Location: Germany/Chemnitz
- Contact:
Hi Bert,
perhaps the problem is TeeChart sources are not 100% thread safe so when using PreviewModal, strange things might happen. The workaround/solution is to use Preview instead of PreviewModal when your reports contain TQRChart component.
perhaps the problem is TeeChart sources are not 100% thread safe so when using PreviewModal, strange things might happen. The workaround/solution is to use Preview instead of PreviewModal when your reports contain TQRChart component.
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 23
- Joined: Wed Jan 12, 2005 5:00 am
- Location: Germany/Chemnitz
- Contact:
Hi Pep,
Thanks for the reply. The suggested workaround/solution (using Preview instead of PreviewModal) does not work for me:
The QrPreview component is on an ActiveForm, i.e. its an ActiveX control insertable in an AxtiveX container like IExplorer. A call of Preview wold block the entire container wich is not acceptable. So I have to keep my workaround (F.Show; F.Visible := false;F.QuickRep.ShowModeless;).
Remember: This is not necessary for all other components in a QuickReport!
Could you please fix the problem?
Thanks in advance
Behalves Bert Kreisel
Thanks for the reply. The suggested workaround/solution (using Preview instead of PreviewModal) does not work for me:
The QrPreview component is on an ActiveForm, i.e. its an ActiveX control insertable in an AxtiveX container like IExplorer. A call of Preview wold block the entire container wich is not acceptable. So I have to keep my workaround (F.Show; F.Visible := false;F.QuickRep.ShowModeless;).
Remember: This is not necessary for all other components in a QuickReport!
Could you please fix the problem?
Thanks in advance
Behalves Bert Kreisel
Hi Bert,
ok. Yes, I've added it on our defect list so it can be fixed for the next releases. Thanks for the report.
ok. Yes, I've added it on our defect list so it can be fixed for the next releases. Thanks for the report.
Pep Jorge
http://support.steema.com
http://support.steema.com
We need a fix for this to
hello!
Has this bug been fixed?
In version 7.07 for Delphi 6 we still get Access Violation.
A Fix for this is urgent.
Best Regards,
Pontus
Nilex AB
Has this bug been fixed?
In version 7.07 for Delphi 6 we still get Access Violation.
A Fix for this is urgent.
Best Regards,
Pontus
Nilex AB
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Pontus,
I'm afraid this (TV52010483) hasn't been fixed yet. I've increased its priority in the bug list so to be fixed sooner.
I'm afraid this (TV52010483) hasn't been fixed yet. I've increased its priority in the bug list so to be fixed sooner.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |