ExportOptions Classe
Indique les propriétés permettant d'extraire et de définir des options pour l'exportation de votre rapport.
Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe ExportOptions.
System.Object
ExportOptions
[Visual Basic]
Public Class ExportOptions
Implements ICloneable
[C#]
public class ExportOptions : ICloneable
Remarques
L'objet ExportOptions peut être extrait via la propriété ExportOptions de l'objet ReportDocument.
Exemple
[Visual Basic]
Private Sub ExportToDisk(ByVal fileName As String)
Dim diskOpts As DiskFileDestinationOptions = _
ExportOptions.CreateDiskFileDestinationOptions()
Dim exportOpts As ExportOptions = New ExportOptions()
exportOpts.ExportFormatType = _
ExportFormatType.RichText
exportOpts.ExportDestinationType = _
ExportDestinationType.DiskFile
diskOpts.DiskFileName = fileName
exportOpts.ExportDestinationOptions = diskOpts
Report.Export(exportOpts)
End Sub
[C++]
static void ExportToDisk (String* fileName)
{
DiskFileDestinationOptions* diskOpts =
ExportOptions::CreateDiskFileDestinationOptions();
ExportOptions* exportOpts = new ExportOptions();
exportOpts->ExportFormatType =
ExportFormatType::RichText;
exportOpts->ExportDestinationType =
ExportDestinationType::DiskFile;
diskOpts->DiskFileName = fileName;
exportOpts->ExportDestinationOptions = diskOpts;
Report->Export(exportOpts);
};
[C#]
private void ExportToDisk (string fileName)
{
DiskFileDestinationOptions diskOpts =
ExportOptions.CreateDiskFileDestinationOptions();
ExportOptions exportOpts = new ExportOptions();
exportOpts.ExportFormatType =
ExportFormatType.RichText;
exportOpts.ExportDestinationType =
ExportDestinationType.DiskFile;
diskOpts.DiskFileName = fileName;
exportOpts.ExportDestinationOptions = diskOpts;
Report.Export(exportOpts);
}
Configuration requise
Espace de noms CrystalDecisions.Shared
Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
Voir aussi
ExportOptions 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/ |