C# Класс Smrf.NodeXL.ExcelTemplate.EmailExporter

Exports a graph to one or more email recipients.
Call ExportToEmail to export a graph to one or more email recipients.
Наследование: Object
Показать файл Открыть проект

Открытые методы

Метод Описание
EmailExporter ( ) : System

Initializes a new instance of the EmailExporter class.

ExportToEmail ( Microsoft workbook, NodeXLControl nodeXLControl, String toAddresses, String fromAddress, String subject, String messageBody, String smtpHost, Int32 smtpPort, System.Boolean useSslForSmtp, String smtpUserName, String smtpPassword, System.Boolean exportWorkbookAndSettings, System.Boolean exportGraphML, System.Boolean useFixedAspectRatio ) : void

Защищенные методы

Метод Описание
AddAlternateHtml ( MailMessage oMailMessage, Byte abtFullSizeImage ) : void
AddAttachment ( MailMessage oMailMessage, Byte abtAttachmentContents, String sContentType, String sSuggestedFileNameNoExtension, String sSuggestedExtension ) : void
AddAttachment ( MailMessage oMailMessage, String sAttachmentContents, String sContentType, String sSuggestedFileNameNoExtension, String sSuggestedExtension ) : void
AddAttachments ( MailMessage oMailMessage, String sSuggestedFileNameNoExtension, String sGraphMLFileNameNoExtension, Byte abtFullSizeImage, Byte abtWorkbookContents, String sWorkbookSettings, Byte abtGraphMLZipped ) : void
AddAttachmentsAndAlternateHtml ( MailMessage oMailMessage, Microsoft oWorkbook, NodeXLControl oNodeXLControl, System.Boolean bExportWorkbookAndSettings, System.Boolean bExportGraphML, System.Boolean bUseFixedAspectRatio ) : void
AddLinkedResourceForFullSizeImage ( Byte abtFullSizeImage, System.Net.Mail.AlternateView oHtmlView ) : void
GetMailMessage ( Microsoft oWorkbook, NodeXLControl oNodeXLControl, String asToAddresses, String sFromAddress, String sSubject, String sMessageBody, System.Boolean bExportWorkbookAndSettings, System.Boolean bExportGraphML, System.Boolean bUseFixedAspectRatio ) : MailMessage
GetSmtpClient ( String sSmtpHost, Int32 iSmtpPort, System.Boolean bUseSslForSmtp, String sSmtpUserName, String sSmtpPassword ) : SmtpClient
GetSuggestedFileNameNoExtension ( Microsoft oWorkbook ) : String
ReplaceGraphSummaryMacro ( String sMessageBody, Microsoft oWorkbook ) : String
SetAddresses ( MailMessage oMailMessage, String asToAddresses, String sFromAddress ) : void
TryReplaceGraphImageMacro ( String &sMessageBody ) : System.Boolean

Приватные методы

Метод Описание
AssertValid ( ) : void

Описание методов

AddAlternateHtml() защищенный Метод

protected AddAlternateHtml ( MailMessage oMailMessage, Byte abtFullSizeImage ) : void
oMailMessage System.Net.Mail.MailMessage
abtFullSizeImage Byte
Результат void

AddAttachment() защищенный Метод

protected AddAttachment ( MailMessage oMailMessage, Byte abtAttachmentContents, String sContentType, String sSuggestedFileNameNoExtension, String sSuggestedExtension ) : void
oMailMessage System.Net.Mail.MailMessage
abtAttachmentContents Byte
sContentType String
sSuggestedFileNameNoExtension String
sSuggestedExtension String
Результат void

AddAttachment() защищенный Метод

protected AddAttachment ( MailMessage oMailMessage, String sAttachmentContents, String sContentType, String sSuggestedFileNameNoExtension, String sSuggestedExtension ) : void
oMailMessage System.Net.Mail.MailMessage
sAttachmentContents String
sContentType String
sSuggestedFileNameNoExtension String
sSuggestedExtension String
Результат void

AddAttachments() защищенный Метод

protected AddAttachments ( MailMessage oMailMessage, String sSuggestedFileNameNoExtension, String sGraphMLFileNameNoExtension, Byte abtFullSizeImage, Byte abtWorkbookContents, String sWorkbookSettings, Byte abtGraphMLZipped ) : void
oMailMessage System.Net.Mail.MailMessage
sSuggestedFileNameNoExtension String
sGraphMLFileNameNoExtension String
abtFullSizeImage Byte
abtWorkbookContents Byte
sWorkbookSettings String
abtGraphMLZipped Byte
Результат void

AddAttachmentsAndAlternateHtml() защищенный Метод

protected AddAttachmentsAndAlternateHtml ( MailMessage oMailMessage, Microsoft oWorkbook, NodeXLControl oNodeXLControl, System.Boolean bExportWorkbookAndSettings, System.Boolean bExportGraphML, System.Boolean bUseFixedAspectRatio ) : void
oMailMessage System.Net.Mail.MailMessage
oWorkbook Microsoft
oNodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl
bExportWorkbookAndSettings System.Boolean
bExportGraphML System.Boolean
bUseFixedAspectRatio System.Boolean
Результат void

AddLinkedResourceForFullSizeImage() защищенный Метод

protected AddLinkedResourceForFullSizeImage ( Byte abtFullSizeImage, System.Net.Mail.AlternateView oHtmlView ) : void
abtFullSizeImage Byte
oHtmlView System.Net.Mail.AlternateView
Результат void

EmailExporter() публичный Метод

Initializes a new instance of the EmailExporter class.
public EmailExporter ( ) : System
Результат System

ExportToEmail() публичный Метод

public ExportToEmail ( Microsoft workbook, NodeXLControl nodeXLControl, String toAddresses, String fromAddress, String subject, String messageBody, String smtpHost, Int32 smtpPort, System.Boolean useSslForSmtp, String smtpUserName, String smtpPassword, System.Boolean exportWorkbookAndSettings, System.Boolean exportGraphML, System.Boolean useFixedAspectRatio ) : void
workbook Microsoft
nodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl
toAddresses String
fromAddress String
subject String
messageBody String
smtpHost String
smtpPort System.Int32
useSslForSmtp System.Boolean
smtpUserName String
smtpPassword String
exportWorkbookAndSettings System.Boolean
exportGraphML System.Boolean
useFixedAspectRatio System.Boolean
Результат void

GetMailMessage() защищенный Метод

protected GetMailMessage ( Microsoft oWorkbook, NodeXLControl oNodeXLControl, String asToAddresses, String sFromAddress, String sSubject, String sMessageBody, System.Boolean bExportWorkbookAndSettings, System.Boolean bExportGraphML, System.Boolean bUseFixedAspectRatio ) : MailMessage
oWorkbook Microsoft
oNodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl
asToAddresses String
sFromAddress String
sSubject String
sMessageBody String
bExportWorkbookAndSettings System.Boolean
bExportGraphML System.Boolean
bUseFixedAspectRatio System.Boolean
Результат System.Net.Mail.MailMessage

GetSmtpClient() защищенный Метод

protected GetSmtpClient ( String sSmtpHost, Int32 iSmtpPort, System.Boolean bUseSslForSmtp, String sSmtpUserName, String sSmtpPassword ) : SmtpClient
sSmtpHost String
iSmtpPort System.Int32
bUseSslForSmtp System.Boolean
sSmtpUserName String
sSmtpPassword String
Результат System.Net.Mail.SmtpClient

GetSuggestedFileNameNoExtension() защищенный Метод

protected GetSuggestedFileNameNoExtension ( Microsoft oWorkbook ) : String
oWorkbook Microsoft
Результат String

ReplaceGraphSummaryMacro() защищенный Метод

protected ReplaceGraphSummaryMacro ( String sMessageBody, Microsoft oWorkbook ) : String
sMessageBody String
oWorkbook Microsoft
Результат String

SetAddresses() защищенный Метод

protected SetAddresses ( MailMessage oMailMessage, String asToAddresses, String sFromAddress ) : void
oMailMessage System.Net.Mail.MailMessage
asToAddresses String
sFromAddress String
Результат void

TryReplaceGraphImageMacro() защищенный Метод

protected TryReplaceGraphImageMacro ( String &sMessageBody ) : System.Boolean
sMessageBody String
Результат System.Boolean