PdfRtfWordFormatOptions 类

提供属性,以便检索和设置导出到 PDF、RTF 或 Word 时的选项。

有关该类型所有成员的列表,参见 PdfRtfWordFormatOptions 成员。

System.Object
   CrystalDecisions.Shared.ExportFormatOptions
      PdfRtfWordFormatOptions

[Visual Basic]

Public Class PdfRtfWordFormatOptions
Implements ICloneable

[C#]

public class PdfRtfWordFormatOptions : ICloneable

示例

教程

该示例说明在导出到 Rich Text 时如何设置 PdfRtfWordFormatOptions 类。

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

要求

命名空间 CrystalDecisions.Shared

程序集 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

请参见

PdfRtfWordFormatOptions 成员 | CrystalDecisions.Shared 命名空间

**

©2005 Business Objects SA 保留所有权利。

Business Objects SA
http://www.china.businessobjects.com/
支持服务
http://www.china.businessobjects.com/