Page 1 of 1

adding recipients for use with 'sendEmail=true' within stiViewerControl.Report.ExportDocument

Posted: Tue Feb 08, 2011 5:57 am
by marceljansen
Is there a way to set the "To" and "Subject" of the e-mail which is popped up by the default E-mail application when using the "ExportDocument" method with "sendEMail= true" ?

adding recipients for use with 'sendEmail=true' within stiViewerControl.Report.ExportDocument

Posted: Fri Feb 11, 2011 5:22 am
by Alex K.
Hello,

You can subscribe to an event of send email in viewer.

Code: Select all

...
StiOptions.Engine.GlobalEvents.SendEMailProcess += new Stimulsoft.Report.Events.StiSendEMailEventHandler(GlobalEvents_SendEMailProcess);
...
void GlobalEvents_SendEMailProcess(object sender, Stimulsoft.Report.Events.StiSendEMailEventArgs e)
{
    e.Recipient = "To";
    e.Subject = "Subject";
}
Thank you.