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 | 提供“缩放到整页”项的文本。 |
页首
注释
您可以实现 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
}
}