次の方法で共有


PdfRtfWordFormatOptions クラス

PDF、RTF、または Word にエクスポートするときのオプションを取得および設定するためのプロパティがあります。

このタイプのメンバの一覧については、「PdfRtfWordFormatOptions のメンバ」を参照してください。

オブジェクト

   PdfRtfWordFormatOptions

[Visual Basic]

Public Class PdfRtfWordFormatOptions

[C#]

public class PdfRtfWordFormatOptions

[C++]

__gc public class PdfRtfWordFormatOptions

[VJ#]

public class PdfRtfWordFormatOptions

次の例は、リッチ テキストにエクスポートするときに、PdfRtfWordFormatOptions クラスを設定する方法を示しています。

[Visual Basic]

Private Sub SetFormatOptions(ByVal firstPage As Int32, ByVal lastPage As Int32, ByVal useRange As Boolean)

   ' 変数を宣言し、エクスポート オプションを取得します。
   Dim exportOpts As New ExportOptions()
   Dim pdfRtfWordOpts As New PdfRtfWordFormatOptions()

   ' エクスポート形式を設定します。
   pdfRtfWordOpts.FirstPageNumber = firstPage
   pdfRtfWordOpts.LastPageNumber = lastPage
   pdfRtfWordOpts.UsePageRange = useRange
   Report.ExportOptions.FormatOptions = pdfRtfWordOpts
   Report.ExportOptions.ExportFormatType = _ 
   ExportFormatType.RichText
End Sub

[C#]

private void SetFormatOptions (int firstPage, int lastPage, bool useRange)
{
   // 変数を宣言し、エクスポート オプションを取得します。
   ExportOptions exportOpts = new ExportOptions();
   PdfRtfWordFormatOptions pdfRtfWordOpts = new 
   PdfRtfWordFormatOptions ();

   // エクスポート形式を設定します。
   pdfRtfWordOpts.FirstPageNumber = firstPage;
   pdfRtfWordOpts.LastPageNumber = lastPage;
   pdfRtfWordOpts.UsePageRange = useRange;
   Report.ExportOptions.FormatOptions = pdfRtfWordOpts;
   Report.ExportOptions.ExportFormatType = 
   ExportFormatType.RichText;
}

[C++]

static void SetFormatOptions (int firstPage, int lastPage, bool useRange)
{
   // 変数を宣言し、エクスポート オプションを取得します。
   ExportOptions* exportOpts = new ExportOptions();
   PdfRtfWordFormatOptions* pdfRtfWordOpts = new 
   PdfRtfWordFormatOptions ();

   // エクスポート形式を設定します。
   pdfRtfWordOpts->FirstPageNumber = firstPage;
   pdfRtfWordOpts->LastPageNumber = lastPage;
   pdfRtfWordOpts->UsePageRange = useRange;
   Report->ExportOptions->FormatOptions = pdfRtfWordOpts;
   Report->ExportOptions->ExportFormatType = 
   ExportFormatType::RichText;

[VJ#]

private void SetFormatOptions (int firstPage, int lastPage, boolean useRange)
{
   // 変数を宣言し、エクスポート オプションを取得します。
   PdfRtfWordFormatOptions pdfRtfWordOpts = new 
   PdfRtfWordFormatOptions ();

   // エクスポート形式を設定します。
   pdfRtfWordOpts.set_FirstPageNumber(firstPage);
   pdfRtfWordOpts.set_LastPageNumber(lastPage);
   pdfRtfWordOpts.set_UsePageRange(useRange);
   Report.get_ExportOptions().set_FormatOptions(pdfRtfWordOpts);
   Report.get_ExportOptions().set_ExportFormatType( 
   ExportFormatType.RichText);
}

要件

名前空間 : CrystalDecisions.Shared

プラットフォーム : Windows 98、Windows NT 4.0、Windows Millennium Edition、Windows 2000、Windows XP

アセンブリ : CrystalDecisions.Shared(CrystalDecisions.Shared.dll 内)

関連項目

PdfRtfWordFormatOptions メンバ | CrystalDecisions.Shared 名前空間