HTMLFormatOptions Classe
Indique les propriétés permettant d'extraire et de définir des options lors de l'exportation vers HTML.
Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe HTMLFormatOptions.
System.Object
CrystalDecisions.Shared.ExportFormatOptions
HTMLFormatOptions
[Visual Basic]
Public Class HTMLFormatOptions
Implements ICloneable
[C#]
public class HTMLFormatOptions : ICloneable
Remarques
La propriété HTMLFileName doit correspondre à la propriété DiskFileName de l'objet DiskFileDestinationOptions.
Exemple
[Visual Basic]
Private Sub ExportToHTML(ByVal file As String, ByVal _
seperatePages As Boolean, ByVal pageNavigator As Boolean)
Dim htmlOpts As HTMLFormatOptions = ExportOptions.CreateHTMLFormatOptions()
Dim diskOpts As DiskFileDestinationOptions = ExportOptions.CreateDiskFileDestinationOptions()
Dim exportOpts As New ExportOptions()
htmlOpts.HTMLFileName = file
htmlOpts.HTMLEnableSeparatedPages = seperatePages
htmlOpts.HTMLHasPageNavigator = pageNavigator
exportOpts.ExportFormatOptions = htmlOpts
diskOpts.DiskFileName = file
exportOpts.ExportDestinationOptions = diskOpts
exportOpts.ExportDestinationType = _
ExportDestinationType.DiskFile
exportOpts.ExportFormatType = _
ExportFormatType.HTML40
Report.Export(exportOpts)
End Sub
[C++]
private static void ExportToHTML (string file, bool seperatePages, bool pageNavigator)
{
HTMLFormatOptions htmlOpts = ExportOptions.CreateHTMLFormatOptions();
DiskFileDestinationOptions diskOpts = ExportOptions.CreateDiskFileDestinationOptions();
ExportOptions exportOpts = new ExportOptions();
htmlOpts.HTMLFileName = file;
htmlOpts.HTMLEnableSeparatedPages = seperatePages;
htmlOpts.HTMLHasPageNavigator = pageNavigator;
exportOpts.ExportFormatOptions = htmlOpts;
diskOpts.DiskFileName = file;
exportOpts.ExportDestinationOptions = diskOpts;
exportOpts.ExportDestinationType =
ExportDestinationType.DiskFile;
exportOpts.ExportFormatType =
ExportFormatType.HTML40;
Report.Export(exportOpts);
}
[C#]
static void ExportToHTML (String* file, bool seperatePages, bool pageNavigator)
{
HTMLFormatOptions* htmlOpts = ExportOptions::CreateHTMLFormatOptions();
DiskFileDestinationOptions* diskOpts = ExportOptions::CreateDiskFileDestinationOptions();
ExportOptions* exportOpts = new ExportOptions();
htmlOpts->HTMLFileName = file;
htmlOpts->HTMLEnableSeparatedPages = seperatePages;
htmlOpts->HTMLHasPageNavigator = pageNavigator;
exportOpts->ExportFormatOptions = htmlOpts;
diskOpts->DiskFileName = file;
exportOpts->ExportDestinationOptions = diskOpts;
exportOpts->ExportDestinationType = ExportDestinationType::DiskFile;
exportOpts->ExportFormatType = ExportFormatType::HTML40;
Report->Export(exportOpts);
}
Configuration requise
Espace de noms CrystalDecisions.Shared
Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
Voir aussi
HTMLFormatOptions 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/ |