MicrosoftMailDestinationOptions 클래스
Microsoft Mail로 내보낼 때 옵션을 검색하고 설정할 수 있는 속성을 제공합니다.
이 형식의 멤버 목록을 보려면 MicrosoftMailDestinationOptions 멤버를 참조하십시오.
System.Object
CrystalDecisions.Shared.ExportDestinationOptions
MicrosoftMailDestinationOptions
[Visual Basic]
Public Class MicrosoftMailDestinationOptions
Implements ICloneable
[C#]
public class MicrosoftMailDestinationOptions : ICloneable
설명
Microsoft Mail로 내보내려면 먼저 mapisp32.dll을 로드해야 합니다. Mapisp32.dll은 메일 클라이언트(예: Microsoft Outlook)를 실행하여 로드할 수 있습니다.
예제
이 예제는 MicrosoftMailDestinationOptions 클래스의 몇 가지 속성을 설정하는 방법을 설명합니다.
[VJ#]
static void ExportToMSMail(String toList, String subject, String message,
String ccList, String user, String password)
{
PdfRtfWordFormatOptions pdfOpts =
ExportOptions.CreatePdfRtfWordFormatOptions();
MicrosoftMailDestinationOptions mailOpts =
ExportOptions.CreateMicrosoftMailDestinationOptions();
ExportOptions exportOpts = new ExportOptions();
pdfOpts.set_UsePageRange( false );
exportOpts.set_ExportFormatOptions( pdfOpts );
mailOpts.set_MailCCList( ccList );
mailOpts.set_MailMessage( message );
mailOpts.set_MailSubject( subject );
mailOpts.set_MailToList( toList );
mailOpts.set_Password( password );
mailOpts.set_UserName( user );
exportOpts.set_ExportDestinationOptions( mailOpts );
exportOpts.set_ExportDestinationType(
ExportDestinationType.MicrosoftMail);
exportOpts.set_ExportFormatType(
ExportFormatType.PortableDocFormat);
Report.Export(exportOpts);
}
[Visual Basic]
Public Sub ExportToMSMail(ByVal toList As String, ByVal subject As String, ByVal message As String, _
ByVal ccList As String, ByVal user As String, ByVal password As String)
Dim pdfOpts As PdfRtfWordFormatOptions = _
ExportOptions.CreatePdfRtfWordFormatOptions()
Dim mailOpts As MicrosoftMailDestinationOptions = _
ExportOptions.CreateMicrosoftMailDestinationOptions()
Dim exportOpts As ExportOptions = New ExportOptions
pdfOpts.UsePageRange = False
exportOpts.ExportFormatOptions = pdfOpts
mailOpts.MailCCList = ccList
mailOpts.MailMessage = message
mailOpts.MailSubject = subject
mailOpts.MailToList = toList
mailOpts.Password = password
mailOpts.UserName = user
exportOpts.ExportDestinationOptions = mailOpts
exportOpts.ExportDestinationType = _
ExportDestinationType.MicrosoftMail
exportOpts.ExportFormatType = _
ExportFormatType.PortableDocFormat
Report.Export(exportOpts)
End Sub
[C++]
static void ExportToMSMail (String* toList, String* subject, String* message,
String* ccList, String* user, String* password)
{
PdfRtfWordFormatOptions* pdfOpts =
ExportOptions::CreatePdfRtfWordFormatOptions();
MicrosoftMailDestinationOptions* mailOpts =
ExportOptions::CreateMicrosoftMailDestinationOptions();
ExportOptions* exportOpts = new ExportOptions();
pdfOpts->UsePageRange = false;
exportOpts->ExportFormatOptions = pdfOpts;
mailOpts->MailCCList = ccList;
mailOpts->MailMessage = message;
mailOpts->MailSubject = subject;
mailOpts->MailToList = toList;
mailOpts->Password = password;
mailOpts->UserName = user;
exportOpts->ExportDestinationOptions = mailOpts;
exportOpts->ExportDestinationType =
ExportDestinationType::MicrosoftMail;
exportOpts->ExportFormatType =
ExportFormatType::PortableDocFormat;
Report->Export (exportOpts);
};
[C#]
static void ExportToMSMail(string toList, string subject, string message,
string ccList, string user, string password)
{
PdfRtfWordFormatOptions pdfOpts =
ExportOptions.CreatePdfRtfWordFormatOptions();
MicrosoftMailDestinationOptions mailOpts =
ExportOptions.CreateMicrosoftMailDestinationOptions();
ExportOptions exportOpts = new ExportOptions();
pdfOpts.UsePageRange = false;
exportOpts.ExportFormatOptions = pdfOpts;
mailOpts.MailCCList = ccList;
mailOpts.MailMessage = message;
mailOpts.MailSubject = subject;
mailOpts.MailToList = toList;
mailOpts.Password = password;
mailOpts.UserName = user;
exportOpts.ExportDestinationOptions = mailOpts;
exportOpts.ExportDestinationType =
ExportDestinationType.MicrosoftMail;
exportOpts.ExportFormatType =
ExportFormatType.PortableDocFormat;
Report.Export(exportOpts);
}
요구 사항
네임스페이스 CrystalDecisions.Shared
어셈블리 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
참고 항목
MicrosoftMailDestinationOptions 멤버 | CrystalDecisions.Shared 네임스페이스
©2005 Business Objects SA All rights reserved.
Business Objects SA http://www.businessobjects.com/ 지원 서비스 http://korea.businessobjects.com/services/ |