IReportViewerMessages インターフェイス

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

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

構文

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

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

プロパティ

  名前 説明
パブリック プロパティ BackButtonToolTip [戻る] ボタンのツールヒント テキストを提供します。
パブリック プロパティ BackMenuItemText [戻る] メニュー項目のテキストを提供します。
パブリック プロパティ ChangeCredentialsText [資格情報の変更] ボタンのテキストを提供します。
パブリック プロパティ CurrentPageTextBoxToolTip [現在のページ] テキスト ボックスのツールヒント テキストを提供します。
パブリック プロパティ DocumentMapButtonToolTip [見出しマップ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ DocumentMapMenuItemText [見出しマップ] メニュー項目のテキストを提供します。
パブリック プロパティ ExportButtonToolTip [エクスポート] ボタンのツールヒント テキストを提供します。
パブリック プロパティ ExportMenuItemText [エクスポート] メニュー項目のテキストを提供します。
パブリック プロパティ FalseValueText false の値のテキストを提供します。
パブリック プロパティ FindButtonText [検索] ボタンのテキストを提供します。
パブリック プロパティ FindButtonToolTip [検索] ボタンのツールヒント テキストを提供します。
パブリック プロパティ FindNextButtonText [次を検索] ボタンのテキストを提供します。
パブリック プロパティ FindNextButtonToolTip [次を検索] ボタンのツールヒント テキストを提供します。
パブリック プロパティ FirstPageButtonToolTip [先頭ページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ LastPageButtonToolTip [最終ページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ NextPageButtonToolTip [次のページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ NoMoreMatches それ以上一致する項目がないことを示すメッセージのテキストを提供します。
パブリック プロパティ NullCheckBoxText [Null] チェック ボックスのテキストを提供します。
パブリック プロパティ NullCheckBoxToolTip [Null] チェック ボックスのツールヒント テキストを提供します。
パブリック プロパティ NullValueText nullNULL 参照 (Visual Basic では Nothing) の値のテキストを提供します。
パブリック プロパティ PageOf ページ割り当てメッセージのテキストを提供します。
パブリック プロパティ PageSetupButtonToolTip [ページ設定] ボタンのツールヒント テキストを提供します。
パブリック プロパティ PageSetupMenuItemText [ページ設定] メニュー項目のテキストを提供します。
パブリック プロパティ ParameterAreaButtonToolTip [パラメーター エリア] ボタンのツールヒント テキストを提供します。
パブリック プロパティ PasswordPrompt パスワード プロンプトのテキストを提供します。
パブリック プロパティ PreviousPageButtonToolTip [前のページ] ボタンのツールヒント テキストを提供します。
パブリック プロパティ PrintButtonToolTip [印刷] ボタンのテキストを提供します。
パブリック プロパティ PrintLayoutButtonToolTip [印刷レイアウト] ボタンのツールヒント テキストを提供します。
パブリック プロパティ PrintLayoutMenuItemText [印刷レイアウト] メニュー項目のテキストを提供します。
パブリック プロパティ PrintMenuItemText [印刷] メニュー項目のテキストを提供します。
パブリック プロパティ ProgressText レポートの処理中に表示される進行状況メッセージのテキストを提供します。
パブリック プロパティ RefreshButtonToolTip [最新の情報に更新] ボタンのツールヒント テキストを提供します。
パブリック プロパティ RefreshMenuItemText [最新の情報に更新] メニュー項目のテキストを提供します。
パブリック プロパティ SearchTextBoxToolTip [検索] テキスト ボックスのツールヒント テキストを提供します。
パブリック プロパティ SelectAll 複数の値を含んでいるドロップダウン リスト ボックスの [すべて選択] 項目のテキストを提供します。
パブリック プロパティ SelectAValue 値を選択する プロンプトのテキストを提供します。
パブリック プロパティ StopButtonToolTip [停止] ボタンのツールヒント テキストを提供します。
パブリック プロパティ StopMenuItemText [停止] メニュー項目のテキストを提供します。
パブリック プロパティ TextNotFound テキストが見つからなかった というメッセージのテキストを提供します。
パブリック プロパティ TotalPagesToolTip [総ページ数] 項目のツールヒント テキストを提供します。
パブリック プロパティ TrueValueText true の値のテキストを提供します。
パブリック プロパティ UserNamePrompt ユーザー名のプロンプトのテキストを提供します。
パブリック プロパティ ViewReportButtonText [レポートの表示] ボタンのテキストを提供します。
パブリック プロパティ ViewReportButtonToolTip [レポートの表示] ボタンのツールヒント テキストを提供します。
パブリック プロパティ ZoomControlToolTip [ズーム] コントロールのツールヒント テキストを提供します。
パブリック プロパティ ZoomMenuItemText [ズーム] メニュー項目のテキストを提供します。
パブリック プロパティ ZoomToPageWidth [ズーム] - [ページの幅] オプションのテキストを指定します。
パブリック プロパティ ZoomToWholePage [ズーム] - [ページ全体] 項目のテキストを指定します。

Top

説明

IReportViewerMessages インターフェイスを実装すると、ReportViewer コントロール ユーザー インターフェイスをカスタム ローカライズできます。ReportViewer コントロールの Messages プロパティを設定することで、この実装を ReportViewer コントロールに渡すことができます。

注意

IReportViewerMessages インターフェイスでは、ローカルまたはサーバー レポート処理のエラー メッセージをカスタマイズできません。

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

使用例

次のコード例では、IReportViewerMessages の実装が ReportViewer コントロールに渡されます。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Reporting.WinForms;
using System.Diagnostics;

namespace MySample
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            CCustomMessageClass myMessageClass = new CCustomMessageClass();

            reportViewer1.Messages = myMessageClass;

            this.reportViewer1.RefreshReport();

         }
    }

    public class CCustomMessageClass : IReportViewerMessages
    {

        #region IReportViewerMessages Members

        public string BackButtonToolTip
        {
            get { return ("BackButtonToolTip here."); }
        }

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

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

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

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

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

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

        public string ExportMenuItemText
        {
            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("Custom first page tool tip"); }
        }

        public string LastPageButtonToolTip
        {
            get { return(null); }
        }

        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 NullCheckBoxToolTip
        {
            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 PageSetupButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

        public string PageSetupMenuItemText
        {
            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 PrintLayoutButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

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

        public string PrintMenuItemText
        {
            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 RefreshMenuItemText
        {
            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 StopButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

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

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

        public string TotalPagesToolTip
        {
            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 ViewReportButtonToolTip
        {
            get { return("Add your custom text here."); }
        }

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

        public string ZoomMenuItemText
        {
            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.WinForms 名前空間