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 | 提供 Null 值的文字。 |
![]() |
PageOf | 提供分頁訊息的文字。 |
![]() |
ParameterAreaButtonToolTip | 提供 [參數區域] 按鈕的工具提示文字。 |
![]() |
PasswordPrompt | 提供密碼提示的文字。 |
![]() |
PreviousPageButtonToolTip | 提供 [上一頁] 按鈕的工具提示文字。 |
![]() |
PrintButtonToolTip | 提供 [列印] 按鈕的文字。 |
![]() |
ProgressText | 提供處理報表時所顯示之進度訊息的文字。 |
![]() |
RefreshButtonToolTip | 提供 [重新整理] 按鈕的工具提示文字。 |
![]() |
SearchTextBoxToolTip | 提供 [搜尋] 文字方塊的工具提示文字。 |
![]() |
SelectAll | 提供多重值下拉式清單方塊中之 [全選] 項目的文字。 |
![]() |
SelectAValue | 提供 [選取值] 提示的文字。 |
![]() |
SelectFormat | 提供選取格式提示的文字。 |
![]() |
TextNotFound | 提供「找不到文字」訊息的文字。 |
![]() |
TodayIs | 提供日曆控制項中之「今天是…」訊息的文字。 |
![]() |
TrueValueText | 提供 true 值的文字。 |
![]() |
UserNamePrompt | 提供使用者名稱提示的文字。 |
![]() |
ViewReportButtonText | 提供 [檢視報表] 按鈕的文字。 |
![]() |
ZoomControlToolTip | 提供 [縮放] 控制項的工具提示。 |
![]() |
ZoomToPageWidth | 提供 [縮放至頁寬] 選項的文字。 |
![]() |
ZoomToWholePage | 提供 [縮放至全頁] 項目的文字。 |
上層
備註
您可以實作 IReportViewerMessages 介面,以提供 ReportViewer 控制項使用者介面的自訂當地語系化。這個實作可以傳遞給 ReportViewer 控制項,其方式是使用 “ReportViewerMessages” 索引鍵將自訂應用程式設定加入到 web.config 組態檔。
例如:
<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
}
}