提供匯出至 Microsoft Exchange 資料夾時的擷取和設定選項屬性。
如需這個類型的成員清單,請參閱 ExchangeFolderDestinationOptions 成員。
System.Object
CrystalDecisions.Shared.ExportDestinationOptions
ExchangeFolderDestinationOptions
[Visual Basic]
Public Class ExchangeFolderDestinationOptions
Implements ICloneable
[C#]
public class ExchangeFolderDestinationOptions : ICloneable
範例
這個範例說明如何設定 ExchangeFolderDestinationOptions 類別的某些屬性。
[Visual Basic]
Private Sub ExportToExchange(ByVal folder As String, _
ByVal profile As String, ByVal password As String)
Dim exchangeOpts as ExchangeFolderDestinationOptions = _
ExportOptions.CreateExchangeFolderDestinationOptions()
Dim exportOpts As ExportOptions = New ExportOptions()
exchangeOpts.DestinationType = _
ExchangeDestinationType.ExchangePostDocMessage
exchangeOpts.FolderPath = folder
exchangeOpts.Profile = profile
exchangeOpts.Password = password
exportOpts.ExportDestinationOptions = exchangeOpts
exportOpts.ExportDestinationType = _
ExportDestinationType.ExchangeFolder
exportOpts.ExportFormatType = ExportFormatType.Excel
Dim rd as ReportDocument = New ReportDocument()
rd.Load("Report.rpt")
rd.Export(exportOpts)
End Sub
[C#]
private void ExportToExchange(string folder, string profile, string password){
ExportOptions exportOpts = new ExportOptions();
ExchangeFolderDestinationOptions exchangeOpts =
ExportOptions.CreateExchangeFolderDestinationOptions();
exchangeOpts.DestinationType =
ExchangeDestinationType.ExchangePostDocMessage;
exchangeOpts.FolderPath = folder;
exchangeOpts.Profile = profile;
exchangeOpts.Password = password;
exportOpts.ExportDestinationOptions = exchangeOpts;
exportOpts.ExportDestinationType =
ExportDestinationType.ExchangeFolder;
exportOpts.ExportFormatType =
ExportFormatType.Excel;
ReportDocument rd = new ReportDocument();
rd.Load("Report.rpt");
rd.Export(exportOpts);
}
需求
組件 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
請參閱
ExchangeFolderDestinationOptions 成員 | CrystalDecisions.Shared 命名空間
©2005 Business Objects SA All rights reserved
| Business Objects SA http://www.china.businessobjects.com/ 支援的服務 http://www.china.businessobjects.com/BOindex/support/ |