Page 1 of 1

TeeExport

Posted: Wed Mar 16, 2005 12:44 am
by 9236183
Hi, I call TeeExport(FormMain, graph_); from my code but the only export formats that I can see are asBitmap and asMetafile.
How do I get the other formats displayed ?
I have included the following hearders :-
#include <TeeJPEG.hpp>
#include <TeeGIF.hpp>
#include <TeePNG.hpp>
#include <TeExport.hpp>
I have TeeChart V7.04 installed. All formats are visible when looking at the TeeChart Pro 7 program.
Thanks for any help,
Brett

Posted: Wed Mar 16, 2005 6:58 am
by Marjan
Hi.

For BCB, adding only the #include won't work. You also have to add the #pragma link statements. In your case:

Code: Select all

#include <TeeJPEG.hpp>
#include <TEEPNG.hpp>

#pragma link "TeeJPEG"
#pragma link "TeePNG"

Posted: Thu Mar 17, 2005 1:09 am
by 9236183
Thanks for that information....thats sorted the problem.
So is there a BCB help file that covers this sort of thing or is this just an oversight in the documentation ?
Regards,
Brett
Marjan wrote:Hi.

For BCB, adding only the #include won't work. You also have to add the #pragma link statements. In your case:

Code: Select all

#include <TeeJPEG.hpp>
#include <TEEPNG.hpp>

#pragma link "TeeJPEG"
#pragma link "TeePNG"

Posted: Thu Mar 17, 2005 8:43 am
by Marjan
It's an oversight in the documentation, but this feature is demonstrated (with source code) in TeeChart VCL BCB demo.