Page 1 of 1

CExport::SaveToJPEGFile call causes compile to fail

Posted: Wed Jun 26, 2013 1:25 am
by 16666295
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.

Re: CExport::SaveToJPEGFile call causes compile to fail

Posted: Wed Jun 26, 2013 6:03 pm
by 16666295
This is urgent since we are not able to compile our code and release it.

Re: CExport::SaveToJPEGFile call causes compile to fail

Posted: Thu Jun 27, 2013 10:09 am
by narcis
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.