Page 1 of 1

exporting chart to pdf

Posted: Mon Apr 05, 2004 10:17 am
by 9231472
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

Posted: Mon Apr 05, 2004 1:33 pm
by Marjan
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.

Posted: Wed Apr 07, 2004 8:29 am
by 9231472
The problem can be recreated with a surface series, when the transparency is not 0.

Posted: Wed Apr 14, 2004 12:14 pm
by Marjan
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, ...).