CExport::SaveToJPEGFile call causes compile to fail

TeeChart for ActiveX, COM and ASP
Post Reply
rsharma
Newbie
Newbie
Posts: 4
Joined: Thu Jun 20, 2013 12:00 am

CExport::SaveToJPEGFile call causes compile to fail

Post by rsharma » Wed Jun 26, 2013 1:25 am

We just upgrdaed from TeeChart8 to TeeChart2013. With TeeChart8, we were maing the following call:

GetExport().SaveToJPEGFile(pszFileName, FALSE, jpegBestQuality, 100, 300, 200);

With TeeChart2013, this fails since CExport::SaveToJPEGFile has been modified to takein an extra argument long DPI as follows:

CExport::SaveToJPEGFile(LPCTSTR FileName, BOOL Gray, long Performance, long Quality, long Width, long Height, long DPI)

What should be passed for this argument? I can't find anything in TeeChart help docs.

rsharma
Newbie
Newbie
Posts: 4
Joined: Thu Jun 20, 2013 12:00 am

Re: CExport::SaveToJPEGFile call causes compile to fail

Post by rsharma » Wed Jun 26, 2013 6:03 pm

This is urgent since we are not able to compile our code and release it.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: CExport::SaveToJPEGFile call causes compile to fail

Post by Narcís » Thu Jun 27, 2013 10:09 am

rsharma wrote: With TeeChart2013, this fails since CExport::SaveToJPEGFile has been modified to takein an extra argument long DPI as follows:

CExport::SaveToJPEGFile(LPCTSTR FileName, BOOL Gray, long Performance, long Quality, long Width, long Height, long DPI)

What should be passed for this argument? I can't find anything in TeeChart help docs.
This is parameter is the Dots per inch (DPI) for printing an image. Default value is 0. I strongly recommend you to read The Myth of DPI article. to get a clear idea of what that means.
rsharma wrote:This is urgent since we are not able to compile our code and release it.
In that case you might be interested in the Pro Support service explained here.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply