ExchangeFolderDestinationOptions Classe
Indique les propriétés permettant d'extraire et de définir des options lors de l'exportation vers les dossiers Microsoft Exchange.
Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe ExchangeFolderDestinationOptions.
System.Object
CrystalDecisions.Shared.ExportDestinationOptions
ExchangeFolderDestinationOptions
[Visual Basic]
Public Class ExchangeFolderDestinationOptions
Implements ICloneable
[C#]
public class ExchangeFolderDestinationOptions : ICloneable
Exemple
[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);
}
Configuration requise
Espace de noms CrystalDecisions.Shared
Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
Voir aussi
ExchangeFolderDestinationOptions Membres | CrystalDecisions.Shared Espace de noms
©2005 Business Objects SA. Tous droits réservés.
Business Objects SA. http://www.france.businessobjects.com/ Services de support http://www.businessobjects.com/support/ |