Page 1 of 1
TeeChart 7.07 + QReport 4.06 + C++Builder 5
Posted: Mon May 07, 2007 8:39 am
by 9046957
Hi.
After the installation of TeeChart 7.07 (with qreport 4.06) I had some problems with my old code. To be sure that the problem was not in my code I wrote a simple project with a form, on the form a qreport with few fields and a qrchart. If I "Preview" at design time everything is ok; if I call the standard QReport->Preview() at runtime my application raise an axception (access violation) during the printing of the chart (it seems to have an invalid window handler or something).
Can you please help me finding the problem?
(I have even tryed the solution proposed by Bert Kreisel 28 Feb 2005 i.e. a call of Form.Show() before previewing but I get the same result.)
Thank you in advance.
Best Regards
Cristina
Posted: Fri May 11, 2007 3:56 pm
by Pep
Hi Cristina,
does the same error happens using PreviewModal() ?
Posted: Fri May 11, 2007 4:14 pm
by 9046957
Yes... sorry ... I forgot to explain that "if I preview" means: I'm using Report->PreviewModal();... it was the first change I had made since I read the other posts.
Posted: Fri May 11, 2007 4:27 pm
by 9046957
In the meanwhile... I've found somthing new... If I build this simple project with the qreport bpl NOT as a runtime packages, I raise no exceptions but I don't see the chart in the preview (modal).
Posted: Wed May 16, 2007 3:55 pm
by Pep
Hi,
just to be sure, are you getting the same problem using Preview() and PreviewModal() ?
I know there's a problem using PreviewModal() which does not happens using Preview().
Posted: Wed May 16, 2007 4:29 pm
by 9046957
Ok ... what I have now is this:
(qreport bpl NOT as a runtime packages)
- if I use Preview() method I raise an exception (access violation) and the problem seems to be in the Qrtee::TQRChart::Print (called by TQRCustomBand::Print) that refers to a TQRPrinter.YPos() when the TQRPrinter is NULL (... or something like that.. I don't have the sources..)
-if I use PreviewModal() method I don't have any error but I don't see the chart in the preview
Posted: Mon May 21, 2007 10:31 am
by Pep
Hi,
it seems to be related with the bug that Bert Kreisel reported some time ago (TV52010483). For the moment it has not been fixed.
We're going to do some tests in order to reproduce it here. Meanwhile, would you be so kind to check if using QuickReport.PreviewModeless; does work fine ? You did some tests with Form.Show but I'm not sure if tried with PreviewModeless.
Posted: Mon May 21, 2007 10:55 am
by 9046957
Hi
If I use PreviewModeless() I don't see anything in the preview (not only the chart.. the other fields too) ant the application raise an exception (access violation) in TQRStandardPreview.FormClose().
would you be so kind to send me (if you find it) the fixing for the bug... because with this new version (just purchased) my software doesn't work anymore.. and it's a little bit difficult to return to the older one because I have to use QReport 4.06.
Thank you in advance
Posted: Thu May 24, 2007 9:14 am
by Pep
Hi,
ok, we're trying to doing some tests in order to reproduce the problem here and try to find a fix for it, we'll back to you with results asap.
Posted: Thu May 24, 2007 11:54 am
by narcis
Hi Cristina,
We have recreated the environment you mentioned (BCB 5, QR v4.06 Pro and TeeChart Pro v7.07 VCL) and couldn't reproduce the problem here.
I have sent you the project we created to reproduce the problem. Could you please test if it works fine at your end?
Please feel free to modify it so that we can reproduce the issue here.
You can post your files at news://
www.steema.net/steema.public.attachments newsgroup or at our
upload page.
Thanks in advance.
Posted: Fri May 25, 2007 7:37 am
by 9046957
Hi
I have sent you by the "upload page" the same project, modified only in the building settings, with the Tee Components NOT as runtime packages (I had to use it this way because otherway it was looking for TeeChartPRO components that I don't have).
Using the button "PreviewReport" it raises an exception "AccessViolation".
I even sent you TeeQR Components (recompiled with the QReport 4.06) and the Qreport 4.06 source files.
I hope this will be useful
Thank you
Cristina
Posted: Mon May 28, 2007 9:24 am
by yeray
We've recreated the environment you are working with and we can run your project with no errors.
So, we've attached at news://
www.steema.net/steema.public.attachments newsgroup the files we used to run it.
Posted: Tue May 29, 2007 6:56 am
by 9046957
Can you please be so kind to send me the same files to my email address.. because I have some problems connecting to news://
www.steema.net/steema.public.attachments
Thank you in advance
Posted: Tue May 29, 2007 7:22 am
by yeray
Files sent to your mail, Cristina.