Page 1 of 1

GetExport().EmailFile() ?

Posted: Tue Dec 09, 2003 3:46 pm
by 9078641
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

Posted: Tue Dec 09, 2003 5:44 pm
by Pep
>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) :

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");
}
Josep Lluis Jorge
http://support.steema.com

Posted: Tue Dec 09, 2003 6:16 pm
by 9078641
works like a charm... thanks...