Page 1 of 1

Populating TeeExport with various graphics formats

Posted: Thu Aug 09, 2007 12:32 am
by 9345581
When I run the TChart demo, there are a bunch of export formats - they all show up. However, when I create an export dialog box myself:

TeeExport(this,Chart1);

I only see three formats (Metafile, PNG, and bitmap).

Any suggestions as to how I can get the rest of the export formats to show up?

Posted: Thu Aug 09, 2007 6:13 am
by Marjan
Hi.

To add additional export formats at runtime, all you have to do is include specific export units in the Uses section. For example, if you want to add jpeg and pdf export formats, add:

Code: Select all

Uses ..., TeeJpeg, TeePDFCanvas;
to the Uses section. Similar goes for C++ Builder:

Code: Select all

#include "TeeJpeg.hpp"
#include "TeePDFCanvas.hpp"