Condividi tramite


PdfRtfWordFormatOptions Classe

Fornisce le proprietà per il recupero e l'impostazione delle opzioni durante l'esportazione nei formati PDF, RTF o Word.

Per un elenco di tutti i membri di questo tipo, vedere PdfRtfWordFormatOptions.

System.Object
   CrystalDecisions.Shared.ExportFormatOptions
      PdfRtfWordFormatOptions

[Visual Basic]

Public Class PdfRtfWordFormatOptions
   Implements ICloneable

[C#]

public class PdfRtfWordFormatOptions : ICloneable

Esempio

Il seguente esempio illustra come impostare la classe PdfRtfWordFormatOptions nell'esportazione in formato RTF.

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

Requisiti

Spazio dei nomi CrystalDecisions.Shared

Assemblaggio CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Vedere anche

PdfRtfWordFormatOptions Membri | CrystalDecisions.Shared Spazio dei nomi

**

©2005 Business Objects SA Tutti i diritti riservati

Business Objects SA
http://www.businessobjects.com/
Servizi di supporto
http://support.businessobjects.com/