I'm getting an AV when I attempt to print a multi page chart. My code just calls the ChartPreview function and the AV happens after OK on the select printer dialog.
I tried the feature in the demo app (Tee8New) and it also bombed. Is this a known problem or am I missing something ?
Delphi 7 + Teechart Pro 8.01.10798
AV on multipage chart print
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi GL123,
Could you please try if including OpenGL unit as described on this thread solves the problem at your end?
If it doesn't, would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Could you please try if including OpenGL unit as described on this thread solves the problem at your end?
If it doesn't, would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi GL123,
Thanks for the example project. We have been able to reproduce this issue here and added it as a high priority defect in the bug list (TV52012736) to be fixed for next releases.
Thanks for the example project. We have been able to reproduce this issue here and added it as a high priority defect in the bug list (TV52012736) to be fixed for next releases.
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 |
Thanks. Can you suggest any sort of workaround before then? I need to release my software on Monday and this has just been raised as an issuenarcis wrote:Hi GL123,
Thanks for the example project. We have been able to reproduce this issue here and added it as a high priority defect in the bug list (TV52012736) to be fixed for next releases.
Try draw your charts onto Printer's canvas.
This code draws two charts side by side below the mid of the page
This code draws two charts side by side below the mid of the page
Code: Select all
var
PX, PY, OrgY, OrgX : Integer;
R: TRect;
MetaF : tMetaFile;
begin
PX:=Printer.PageWidth div 100;
PY:=Printer.PageHeight div 100;
OrgX:=PX*8;
OrgY:=PY*6;
YourChart1.Printing:=True;
MetaF:=YourChart1.TeeCreateMetafile(True,Rect(0,0,313,217));
R:=Rect(OrgX,PY*50,PX*49,PY* 70);
_Canvas.StretchDraw(R,MetaF);
MetaF.Free;
YourChart1.Printing:=False;
YourChart2.Printing:=True;
MetaF:=YourChart2.TeeCreateMetafile(True,Rect(0,0,313,217));
R:=Rect(PX*57,Py*50,PX*98,PY* 70);
_Canvas.StretchDraw(R,MetaF);
MetaF.Free;
YourChart2.Printing:=False;
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009
Hi GL123,
We've tested this issue with the actual sources and we aren't able to reproduce this problem. Could you please try if the latest version available to download (v8.04) solves this for you?
We've tested this issue with the actual sources and we aren't able to reproduce this problem. Could you please try if the latest version available to download (v8.04) solves this for you?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |