提供属性,以便检索和设置导出到 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 保留所有权利。
| Business Objects SA http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/ |