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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

공개 메소드들

메소드 설명
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