次の方法で共有


IReportViewerMessages インターフェイス

アプリケーションで、カスタマイズしたユーザー インターフェイス メッセージを提供できるようにします。

名前空間:  Microsoft.Reporting.WebForms
アセンブリ:  Microsoft.ReportViewer.WebForms (Microsoft.ReportViewer.WebForms.dll)

構文

'宣言
Public Interface IReportViewerMessages
'使用
Dim instance As IReportViewerMessages
public interface IReportViewerMessages
public interface class IReportViewerMessages
type IReportViewerMessages =  interface end
public interface IReportViewerMessages

IReportViewerMessages 型は、以下のメンバーを公開しています。

プロパティ

  名前 説明
パブリック プロパティ BackButtonToolTip [戻る] ボタンのツールヒント テキストを提供します。
パブリック プロパティ ChangeCredentialsText [資格情報の変更] ボタンのテキストを提供します。
パブリック プロパティ ChangeCredentialsToolTip [資格情報の変更] ボタンのツールヒント テキストを提供します。
パブリック プロパティ CurrentPageTextBoxToolTip [現在のページ] テキスト ボックスのツールヒント テキストを提供します。
パブリック プロパティ DocumentMap [見出しマップ] パネルのタイトル テキストを提供します。
パブリック プロパティ DocumentMapButtonToolTip [見出しマップ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ ExportButtonText [エクスポート] ボタンのテキストを提供します。
パブリック プロパティ ExportButtonToolTip [エクスポート] ボタンのツールヒント テキストを提供します。
パブリック プロパティ ExportFormatsToolTip [形式のエクスポート] ボックスのツールヒント テキストを提供します。
パブリック プロパティ FalseValueText false の値のテキストを提供します。
パブリック プロパティ FindButtonText [検索] ボタンのテキストを提供します。
パブリック プロパティ FindButtonToolTip [検索] ボタンのツールヒント テキストを提供します。
パブリック プロパティ FindNextButtonText [次を検索] ボタンのテキストを提供します。
パブリック プロパティ FindNextButtonToolTip [次を検索] ボタンのツールヒント テキストを提供します。
パブリック プロパティ FirstPageButtonToolTip [先頭ページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ InvalidPageNumber 無効なページ番号のメッセージのテキストを提供します。
パブリック プロパティ LastPageButtonToolTip [最終ページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ NextPageButtonToolTip [次のページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ NoMoreMatches それ以上一致する項目がないことを示すメッセージのテキストを提供します。
パブリック プロパティ NullCheckBoxText [Null] チェック ボックスのテキストを提供します。
パブリック プロパティ NullValueText nullNULL 参照 (Visual Basic では Nothing) の値のテキストを提供します。
パブリック プロパティ PageOf ページ割り当てメッセージのテキストを提供します。
パブリック プロパティ ParameterAreaButtonToolTip [パラメーター エリア] ボタンのツールヒント テキストを提供します。
パブリック プロパティ PasswordPrompt パスワード プロンプトのテキストを提供します。
パブリック プロパティ PreviousPageButtonToolTip [前のページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ PrintButtonToolTip [印刷] ボタンのテキストを提供します。
パブリック プロパティ ProgressText レポートの処理中に表示される進行状況メッセージのテキストを提供します。
パブリック プロパティ RefreshButtonToolTip [最新の情報に更新] ボタンのツールヒント テキストを提供します。
パブリック プロパティ SearchTextBoxToolTip [検索] テキスト ボックスのツールヒント テキストを提供します。
パブリック プロパティ SelectAll 複数の値を含んでいるドロップダウン リスト ボックスの [すべて選択] 項目のテキストを提供します。
パブリック プロパティ SelectAValue 値を選択する プロンプトのテキストを提供します。
パブリック プロパティ SelectFormat 形式を選択するプロンプトのテキストを提供します。
パブリック プロパティ TextNotFound テキストが見つからないことを示すメッセージのテキストを提供します。
パブリック プロパティ TodayIs カレンダー コントロールの '今日は...です' メッセージのテキストを提供します。
パブリック プロパティ TrueValueText true の値のテキストを提供します。
パブリック プロパティ UserNamePrompt ユーザー名のプロンプトのテキストを提供します。
パブリック プロパティ ViewReportButtonText [レポートの表示] ボタンのテキストを提供します。
パブリック プロパティ ZoomControlToolTip [ズーム] コントロールのツールヒントを提供します。
パブリック プロパティ ZoomToPageWidth [ズーム] - [ページの幅] オプションのテキストを指定します。
パブリック プロパティ ZoomToWholePage [ズーム] - [ページ全体] 項目のテキストを指定します。

Top

説明

IReportViewerMessages インターフェイスを実装すると、ReportViewer コントロール ユーザー インターフェイスをカスタム ローカライズできます。この実装は、"ReportViewerMessages" キーを使用してカスタム アプリケーション設定を web.config 構成ファイルに追加することで、ReportViewer コントロールに渡すことができます。

次に例を示します。

<appSettings>

<add key="ReportViewerMessages" value="MyClass, MyAssembly" />

</appSettings>

メモ   Web 構成設定の詳細については、「ReportViewer 用の Web.config 設定」を参照してください。

プロパティに対して nullNULL 参照 (Visual Basic では Nothing) 文字列値が返された場合、ReportViewer コントロールでは、そのアイテムの元のユーザー インターフェイス文字列が表示されます。

使用例

IReportViewerMessages インターフェイスを実装するクラスのコード例を次に示します。

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Reporting.WebForms;

namespace MySample
{
    public class CReportViewerCustomMessages :
        Microsoft.Reporting.WebForms.IReportViewerMessages
    {
        #region IReportViewerMessages Members

        public string BackButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string ChangeCredentialsText
        {
            get { return("Add your custom text here."); }
        }

        public string ChangeCredentialsToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string CurrentPageTextBoxToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string DocumentMap
        {
            get { return("Add your custom text here."); }
        }

        public string DocumentMapButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string ExportButtonText
        {
            get { return("Add your custom text here."); }
        }

        public string ExportButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string ExportFormatsToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string FalseValueText
        {
            get { return("Add your custom text here."); }
        }

        public string FindButtonText
        {
            get { return("Add your custom text here."); }
        }

        public string FindButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string FindNextButtonText
        {
            get { return("Add your custom text here."); }
        }

        public string FindNextButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string FirstPageButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string InvalidPageNumber
        {
            get { return("Add your custom text here."); }
        }

        public string LastPageButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string NextPageButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string NoMoreMatches
        {
            get { return("Add your custom text here."); }
        }

        public string NullCheckBoxText
        {
            get { return("Add your custom text here."); }
        }

        public string NullValueText
        {
            get { return("Add your custom text here."); }
        }

        public string PageOf
        {
            get { return("Add your custom text here."); }
        }

        public string ParameterAreaButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string PasswordPrompt
        {
            get { return("Add your custom text here."); }
        }

        public string PreviousPageButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string PrintButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string ProgressText
        {
            get { return("Add your custom text here."); }
        }

        public string RefreshButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string SearchTextBoxToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string SelectAValue
        {
            get { return("Add your custom text here."); }
        }

        public string SelectAll
        {
            get { return("Add your custom text here."); }
        }

        public string SelectFormat
        {
            get { return("Add your custom text here."); }
        }

        public string TextNotFound
        {
            get { return("Add your custom text here."); }
        }

        public string TodayIs
        {
            get { return("Add your custom text here."); }
        }

        public string TrueValueText
        {
            get { return("Add your custom text here."); }
        }

        public string UserNamePrompt
        {
            get { return("Add your custom text here."); }
        }

        public string ViewReportButtonText
        {
            get { return("Add your custom text here."); }
        }

        public string ZoomControlToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string ZoomToPageWidth
        {
            get { return("Add your custom text here."); }
        }

        public string ZoomToWholePage
        {
            get { return("Add your custom text here."); }
        }

        #endregion
    }
}

関連項目

参照

Microsoft.Reporting.WebForms 名前空間