QrChart and QrPreview
Posted: Mon Feb 28, 2005 2:46 pm
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
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