tQRChart in delphi 2007 TeeChart v8 and Quickreport v4
-
- Newbie
- Posts: 24
- Joined: Mon Feb 25, 2008 12:00 am
tQRChart in delphi 2007 TeeChart v8 and Quickreport v4
I have serious trouble getting the tQRChart component to work properly in the above configuration. I put the DclTeeQR4D11.bpl and the Tee8QR4D11.bpl (kindly compiled by Steema) in the directory ..TeeChart 8.02 for Delphi 2007\Delphi 11\Bin. In the IDE, I use the Component -> Install packages, press ADD and point to the DclTeeQR4D11.bpl in this directory. I now have the tQRChart component displayed in the Quickreport component list and everything looks fine. I open a new form, dump a Quickreport on it and add a tQRChart. Then the misery starts: When I view the form as text and then try to view it as a form again, I get the message: Error creating form, acces violation at address 20031726 in module 'rtl100.bpl' read of address 00000008.
- Am I doing something wrong here? The applications cannot run reports with a tQRChart as long as this error persists.
- Am I doing something wrong here? The applications cannot run reports with a tQRChart as long as this error persists.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Claus,
Does TQRChart work fine without displaying the form as text?
Thanks in advance.
Does TQRChart work fine without displaying the form as text?
Thanks in advance.
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 |
-
- Newbie
- Posts: 24
- Joined: Mon Feb 25, 2008 12:00 am
No! I make a simple project with 2 forms. On one form there is a button and on the other a quickreport with a TQRLabel. When I run the application and push the button, the caption is set to 'Hello world' and the form with the quickreport is displayed (with 'Hello world' displayed OK).
I then add a TQRChart to the quickreport and add a FastLineSeries (series1) - Nothing else! The application compiles fine, but when I try to run it, I get an EAccessViolation. It seems that the mere existence of the TQRChart makes application crash.
I then add a TQRChart to the quickreport and add a FastLineSeries (series1) - Nothing else! The application compiles fine, but when I try to run it, I get an EAccessViolation. It seems that the mere existence of the TQRChart makes application crash.
Hi Claus,
I've seen in the instructions here it was a step left and I've added it as 24 (bis):
Copy the compiled file C:\Program Files\Steema Software\TeeChart 7.12 for Delphi 2007\Delphi11\QuickReport\compiled\TeeQR711.bpl to you windows' system folder.
So for you, you should copy the file Tee8QR4D11.bpl to windows' system (system32) folder.
I think (and hope) this will solve your problem.
I've seen in the instructions here it was a step left and I've added it as 24 (bis):
Copy the compiled file C:\Program Files\Steema Software\TeeChart 7.12 for Delphi 2007\Delphi11\QuickReport\compiled\TeeQR711.bpl to you windows' system folder.
So for you, you should copy the file Tee8QR4D11.bpl to windows' system (system32) folder.
I think (and hope) this will solve your problem.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 24
- Joined: Mon Feb 25, 2008 12:00 am
Hi Yeray,
Tried that, but without any improvements. When tracing the program during startup, I can see that it crashes somewhere in the code made by QuSoft. It happens in the Application.CreateForm(TForm..,Form..) procedure during startup, where the Form is the one with the QRReport and the TQRChart. Maybe it is the code from QuSoft that causes the error. The latest odd behaviour is that the TChart 8 for QuickReport 4 is automatically deselected from my list of design packages (and hence from the Tool Palette) when the IDE is opened. If I select it, the component reappears on the Tool Palette, but only until the IDE is closed.
Tried that, but without any improvements. When tracing the program during startup, I can see that it crashes somewhere in the code made by QuSoft. It happens in the Application.CreateForm(TForm..,Form..) procedure during startup, where the Form is the one with the QRReport and the TQRChart. Maybe it is the code from QuSoft that causes the error. The latest odd behaviour is that the TChart 8 for QuickReport 4 is automatically deselected from my list of design packages (and hence from the Tool Palette) when the IDE is opened. If I select it, the component reappears on the Tool Palette, but only until the IDE is closed.
Hi Claus,
I've just tested again the files I sent to you and they worked fine here. Here's what I've done:
-Uninstall QuickReport
-Uninstall TeeChart
-Clean residual files and folders. (You can do it by searching "tee", "quick" and "qr" at system32 and rad studio directories and removing previous installation files carefully).
-Clean search and library paths at rad studio.
-Install and test QuickReport 4.07.
-Install and test TeeChart Pro 8.02.
Copy the compiled files I sent you:
-DclTee8QR4D11.bpl to rad studio's bin folder
-Tee8QR4D11.bpl to windows' system32 folder
-*.dcp and *.dcu to rad studio's lib folder
-Finally, open delphi 2007 and add the package DclTee8QR4D11.bpl from your rad studio's bin folder.
I recommend you to try the final steps, only verifying everything is where it should be and test it. And if still doesn't work, maybe you should start from the beginning of this instructions.
I've just tested again the files I sent to you and they worked fine here. Here's what I've done:
-Uninstall QuickReport
-Uninstall TeeChart
-Clean residual files and folders. (You can do it by searching "tee", "quick" and "qr" at system32 and rad studio directories and removing previous installation files carefully).
-Clean search and library paths at rad studio.
-Install and test QuickReport 4.07.
-Install and test TeeChart Pro 8.02.
Copy the compiled files I sent you:
-DclTee8QR4D11.bpl to rad studio's bin folder
-Tee8QR4D11.bpl to windows' system32 folder
-*.dcp and *.dcu to rad studio's lib folder
-Finally, open delphi 2007 and add the package DclTee8QR4D11.bpl from your rad studio's bin folder.
I recommend you to try the final steps, only verifying everything is where it should be and test it. And if still doesn't work, maybe you should start from the beginning of this instructions.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 24
- Joined: Mon Feb 25, 2008 12:00 am
Hi Yeray,
I tried all that, and the slight improvement was that all components including the TQRChart installed OK and seem to be stable. I then make a simple project:
A main form (Form1) with a Tbutton on it (no code!).
A form (Form2 used by the main form) containing a TQuickRep with a TQRchart on it (no code!).
The application compiles without warnings, but when I try to run it, it comes up with a EAccessViolation. The problem occurs somewhere in the QuickRep unit whichs is triggered by the Application.CreateForm(TForm2,Form2) during startup. If the TQRChart is deleted from Form2, the application starts up fine. The TQRChart seems somehow to be incompatible with the QuickReport 4.07-version (?)...
I tried all that, and the slight improvement was that all components including the TQRChart installed OK and seem to be stable. I then make a simple project:
A main form (Form1) with a Tbutton on it (no code!).
A form (Form2 used by the main form) containing a TQuickRep with a TQRchart on it (no code!).
The application compiles without warnings, but when I try to run it, it comes up with a EAccessViolation. The problem occurs somewhere in the QuickRep unit whichs is triggered by the Application.CreateForm(TForm2,Form2) during startup. If the TQRChart is deleted from Form2, the application starts up fine. The TQRChart seems somehow to be incompatible with the QuickReport 4.07-version (?)...
-
- Newbie
- Posts: 24
- Joined: Mon Feb 25, 2008 12:00 am
I now have the TQRChart available and stable. When I make a new simple project with a Quickreport and a TQRchart on it, it runs smoothly. The report is made with the new form style-report in Delphi 2007, and the application even runs fine, even when I add another Quickreport which was made using the formless style.
However, in a large application imported from delphi 7 and upgraded to 2007, I get an EaccesViolation in the Application.createfom (i.e. the report) if I try to incorporate a quickreport (fexactly the same report as used above). This application runs fine, if the TQRChart is omitted from the report. Same IDE, same search paths ... and yet a problem. The error occurs somewhere in the Quickrep unit from Qusoft ... any clues?
However, in a large application imported from delphi 7 and upgraded to 2007, I get an EaccesViolation in the Application.createfom (i.e. the report) if I try to incorporate a quickreport (fexactly the same report as used above). This application runs fine, if the TQRChart is omitted from the report. Same IDE, same search paths ... and yet a problem. The error occurs somewhere in the Quickrep unit from Qusoft ... any clues?
-
- Newbie
- Posts: 24
- Joined: Mon Feb 25, 2008 12:00 am
Mystery (partially) solved: For some reason Delphi 2007 does not upgrade Delphi 7 forms completely. If I make new forms in Delphi 2007 and copy the components from similar Delphi 7 forms to the new forms, then the TQreport with a TQRChart on it works fine. The code is the same, but delphi 2007 updates the components (new fancy button styles etc.). Why this works is beyond me, .. but it does!