다음을 통해 공유


PdfRtfWordFormatOptions 클래스

PDF, RTF, 또는 Word로 내보낼 때 옵션을 검색하고 설정할 수 있는 속성을 제공합니다.

이 형식의 멤버 목록을 보려면 PdfRtfWordFormatOptions 멤버를 참조하십시오.

System.Object
   CrystalDecisions.Shared.ExportFormatOptions
      PdfRtfWordFormatOptions

[Visual Basic]

Public Class PdfRtfWordFormatOptions
   Implements ICloneable

[C#]

public class PdfRtfWordFormatOptions : ICloneable

예제

자습서

이 예제는 서식있는 텍스트로 내보낼 때 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 All rights reserved.

Business Objects SA
http://www.businessobjects.com/
지원 서비스
http://korea.businessobjects.com/services/