Follow

E-mail attachment

 

The standard procedure of sending the report via E-mail works via MAPI (Messaging Application Programming Interface). Unfortunately, the syntax of this interface is not fully standardized, and each e-mail application uses a different method of adding attachments. To change this behavior use the following event:

 StiOptions.Engine.GlobalEvents.InvokeSendEMailProcess(sender, arg)

or you can subscribe to the following event:

 StiOptions.Engine.GlobalEvents.SendEMailProcess

in which sending the argument arg as the StiSendEMailEventArgs type with the following fields: 

  StiReport report

  string recipient    

  string subject    

  string body    

  string filePath    

  bool CallStandardHandler 

you can set the CallStandardHandler property to false in this event and realize your method of sending mail.

0 Comments

Please sign in to leave a comment.
Powered by Zendesk