exporting chart to pdf

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Neil
Newbie
Newbie
Posts: 9
Joined: Tue Mar 16, 2004 5:00 am

exporting chart to pdf

Post by Neil » Mon Apr 05, 2004 10:17 am

i am trying to export a chart to a pdf.
I am using TeeChart 7 under BCB6
here is the code:
TeeSaveToPDFFile(Chart1,"test.pdf", 450, 200);

but this gives and EAccessViolation Error. What is the correct way to export to a pdf?

Thanks

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon Apr 05, 2004 1:33 pm

Hi, Neil.

The code looks fine to me. Perhaps it's a bug in one of internal pdf generating routines (font metrics). Which operating system are you using ? I'd be great if you could send me small sample application (sources only, so that I can run it here as-is) so that I can debug/test it here. You can send it to my marjan@steema.com email address.
Marjan Slatinek,
http://www.steema.com

Neil
Newbie
Newbie
Posts: 9
Joined: Tue Mar 16, 2004 5:00 am

Post by Neil » Wed Apr 07, 2004 8:29 am

The problem can be recreated with a surface series, when the transparency is not 0.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Apr 14, 2004 12:14 pm

Hi, Neil.

Perhaps the problem is the Transparency is not supported in pdf/eps (and some other) export filter. Current PDF export implementation does not support all TCahvas3D methods so when exporting, you should disable more advanced features (transparency, different brush fills, ...).
Marjan Slatinek,
http://www.steema.com

Post Reply