Partager via


PdfRtfWordFormatOptions Classe

Indique les propriétés permettant d'extraire et de définir des options lors de l'exportation au format PDF, RTF ou Word.

Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe PdfRtfWordFormatOptions.

System.Object
   CrystalDecisions.Shared.ExportFormatOptions
      PdfRtfWordFormatOptions

[Visual Basic]

Public Class PdfRtfWordFormatOptions
   Implements ICloneable

[C#]

public class PdfRtfWordFormatOptions : ICloneable

Exemple

[Visual Basic]

      Private Sub ExportWithFormatOptions(ByVal fileName As String, ByVal firstPage As Integer, ByVal lastPage As Integer, ByVal useRange As Boolean)
      
          Dim exportOpts As ExportOptions = New ExportOptions()
          Dim pdfRtfWordOpts As PdfRtfWordFormatOptions = ExportOptions.CreatePdfRtfWordFormatOptions()
          Dim destinationOpts As DiskFileDestinationOptions = ExportOptions.CreateDiskFileDestinationOptions()
      
          pdfRtfWordOpts.FirstPageNumber = firstPage
          pdfRtfWordOpts.LastPageNumber = lastPage
          pdfRtfWordOpts.UsePageRange = useRange
          exportOpts.ExportFormatOptions = pdfRtfWordOpts
          exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
      
          destinationOpts.DiskFileName = fileName
          exportOpts.ExportDestinationOptions = destinationOpts
          exportOpts.ExportDestinationType = ExportDestinationType.DiskFile
      
          Report.Export(exportOpts)
      
      End Sub
      
[C++]

      static void ExportWithFormatOptions (String* fileName, int firstPage, int lastPage, bool useRange)
      {
          ExportOptions* exportOpts = new ExportOptions();
          PdfRtfWordFormatOptions* pdfRtfWordOpts = ExportOptions::CreatePdfRtfWordFormatOptions();
          DiskFileDestinationOptions* destinationOpts = ExportOptions::CreateDiskFileDestinationOptions();
      
          pdfRtfWordOpts->FirstPageNumber = firstPage;
          pdfRtfWordOpts->LastPageNumber = lastPage;
          pdfRtfWordOpts->UsePageRange = useRange;
          exportOpts->ExportFormatOptions = pdfRtfWordOpts;
          exportOpts->ExportFormatType = ExportFormatType::PortableDocFormat;
      
          destinationOpts->DiskFileName = fileName;
          exportOpts->ExportDestinationOptions = destinationOpts;
          exportOpts->ExportDestinationType = ExportDestinationType::DiskFile;
      
          Report->Export (exportOpts);
      };
      
[C#]

      private static void ExportWithFormatOptions (string fileName, int firstPage, int lastPage, bool useRange)
      {
          ExportOptions exportOpts = new ExportOptions();
          PdfRtfWordFormatOptions pdfRtfWordOpts = ExportOptions.CreatePdfRtfWordFormatOptions();
          DiskFileDestinationOptions destinationOpts = ExportOptions.CreateDiskFileDestinationOptions();
      
          pdfRtfWordOpts.FirstPageNumber = firstPage;
          pdfRtfWordOpts.LastPageNumber = lastPage;
          pdfRtfWordOpts.UsePageRange = useRange;
          exportOpts.ExportFormatOptions = pdfRtfWordOpts;
          exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
      
          destinationOpts.DiskFileName = fileName;
          exportOpts.ExportDestinationOptions = destinationOpts;
          exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
      
          Report.Export (exportOpts);
      }
      

Configuration requise

Espace de noms CrystalDecisions.Shared

Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Voir aussi

PdfRtfWordFormatOptions 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/