FlexReport for WPF
SuperLabel カスタムフィールド
フィールドとカスタムフィールド > SuperLabel カスタムフィールド

SuperLabel フィールドは、レポートに HTML テキストを挿入するために使用されます。 FlexReport supports SuperLabel fields using its extensible custom field architecture. In the following sections, you'll see how you to customize SuperLabel fields in reports using the FlexReportDesigner application. The SuperLabel custom field uses three assemblies, C1.Win.FlexReport.CustomFields, C1.Win and C1.Win.SuperTooltip, which should be in the same folder as the FlexReportDesigner app.

To start using the SuperLabel custom field in the FlexReportDesigner application, complete the following steps:

  1. C1FlexReportDesigner アプリケーションを実行します。
  2. C1FlexReportDesigner ツールバーにマップアイコンがあることを確認します。アイコンがない場合は、C1FlexReportDesigner.4.exe.settings ファイルの <customfields> セクションに次の行を追加する必要があります。
      
    コードのコピー
    <customfields>
        <item value="C1.Win.FlexReport.CustomFields.4.5.2;C1.Win.FlexReport.CustomFields.Map" />
    </customfields>
    
     
  3. 新しいレポートを作成するか、既存のレポートを開きます。例については、「クイックスタート」を参照してください。
  4. マップアイコンをクリックし、レポートまでドラッグしてマップフィールドを追加します。

これで終わりです。マップフィールドには主に次の要素があります。

マップカスタムフィールドで作成したレポートに SuperLabel フィールドを追加してみます。

  1. レポートを開きます。
  2. ページヘッダーの Visible プロパティを True に設定します。
  3. SuperLabel フィールドをレポートのページヘッダーセクションにドロップします。
  4. プロパティペインで、Text プロパティを次のテキストに設定します。
    SuperLabel.Text
    コードのコピー
    <html><body><font color="Red">Customers and Suppliers by City</font></body></html>
    
  5. デザイナには、SuperLabel フィールドが次のように表示されます。

    SuperLabel custom field

  6. レポートをプレビュー表示します。

    Preview SuperLabel custom field.