アプリケーションで、カスタマイズしたユーザー インターフェイス メッセージを提供できるようにします。
名前空間: 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
}
}