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

Stimulsoft Reports.NET discussion
Post Reply
marceljansen
Posts: 2
Joined: Tue Feb 08, 2011 5:56 am
Location: Netherlands

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

Post 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" ?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

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

Post 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.
Post Reply