TeeExport

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

TeeExport

Post by bdw » Wed Mar 16, 2005 12:44 am

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

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

Post by Marjan » Wed Mar 16, 2005 6:58 am

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"
Marjan Slatinek,
http://www.steema.com

bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Post by bdw » Thu Mar 17, 2005 1:09 am

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"

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

Post by Marjan » Thu Mar 17, 2005 8:43 am

It's an oversight in the documentation, but this feature is demonstrated (with source code) in TeeChart VCL BCB demo.
Marjan Slatinek,
http://www.steema.com

Post Reply