PdfRtfWordFormatOptions Klasse

Stellt Eigenschaften zum Abrufen und Festlegen von Optionen beim Exportieren in das PDF-, RTF- oder Word-Format bereit.

Eine Liste der Elemente dieses Typs finden Sie unter PdfRtfWordFormatOptions -Elemente.

System.Object
   CrystalDecisions.Shared.ExportFormatOptions
      PdfRtfWordFormatOptions

[Visual Basic]

Public Class PdfRtfWordFormatOptions
   Implements ICloneable

[C#]

public class PdfRtfWordFormatOptions : ICloneable

Beispiel

In diesem Beispiel wird veranschaulicht, wie die PdfRtfWordFormatOptions-Klasse beim Exportieren in das Rich Text-Format festzulegen ist.

[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);
      }
      

Anforderungen

Namespace CrystalDecisions.Shared

Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Siehe auch

PdfRtfWordFormatOptions Elemente | CrystalDecisions.Shared Namespace

**

©2005 Business Objects SA Alle Rechte vorbehalten

Business Objects SA
http://germany.businessobjects.com/
Supportleistungen
http://germany.businessobjects.com/support/