What is needed to get EmailFile() to work ?
m_Chart1.GetExport().EmailFile("filename"); // send a file ?
m_Chart1.GetExport().EmailFile("email address"); // or email address ?
None of these work. I expect something else has to be done beofree EmailFile(0 will work.
Thanks
GetExport().EmailFile() ?
>m_Chart1.GetExport().EmailFile("filename"); // send a file ?
Yes, you must add the file name.
>What is needed to get EmailFile() to work ?
First you should export the Chart and then you will be able to send it via mail. You can do something like the following code (it works fine here) :
Josep Lluis Jorge
http://support.steema.com
Yes, you must add the file name.
>What is needed to get EmailFile() to work ?
First you should export the Chart and then you will be able to send it via mail. You can do something like the following code (it works fine here) :
Code: Select all
void CEmailFileDlg::OnButton1()
{
m_chart.GetExport().GetAsJPEG().SetCompressionQuality(90);
m_chart.GetExport().GetAsJPEG().SetGrayScale(false);
m_chart.GetExport().GetAsJPEG().SetHeight(400);
m_chart.GetExport().GetAsJPEG().SetWidth(600);
m_chart.GetExport().GetAsJPEG().SaveToFile("c:\\Chart1.jpg");
m_chart.GetExport().EmailFile("c:\\Chart1.jpg");
}
http://support.steema.com