如何设置reportviewer控件工具条显示中文
1个回答
2015-10-04
展开全部
第一步:写一个独立的类,实现接口IReportViewerMessages,代码如下:
Public Class ReportViewerMessagesZhcn
Implements IReportViewerMessages
Public ReadOnly Property BackButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.BackButtonToolTip
Get
Return "后退"
End Get
End Property
Public ReadOnly Property BackMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.BackMenuItemText
Get
Return "后退"
End Get
End Property
Public ReadOnly Property ChangeCredentialsText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ChangeCredentialsText
Get
Return "更改"
End Get
End Property
Public ReadOnly Property CurrentPageTextBoxToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.CurrentPageTextBoxToolTip
Get
Return "当前页"
End Get
End Property
Public ReadOnly Property DocumentMapButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.DocumentMapButtonToolTip
Get
Return "文档视图"
End Get
End Property
Public ReadOnly Property DocumentMapMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.DocumentMapMenuItemText
Get
Return "文档视图"
End Get
End Property
Public ReadOnly Property ExportButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ExportButtonToolTip
Get
Return "导出"
End Get
End Property
Public ReadOnly Property ExportMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ExportMenuItemText
Get
Return "选择格式:"
End Get
End Property
Public ReadOnly Property FalseValueText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FalseValueText
Get
Return "不正确的值"
End Get
End Property
Public ReadOnly Property FindButtonText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindButtonText
Get
Return "查找"
End Get
End Property
Public ReadOnly Property FindButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindButtonToolTip
Get
Return "查找"
End Get
End Property
Public ReadOnly Property FindNextButtonText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindNextButtonText
Get
Return "下一个"
End Get
End Property
Public ReadOnly Property FindNextButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindNextButtonToolTip
Get
Return "下一个"
End Get
End Property
Public ReadOnly Property FirstPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FirstPageButtonToolTip
Get
Return "首页"
End Get
End Property
Public ReadOnly Property LastPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.LastPageButtonToolTip
Get
Return "最后一页"
End Get
End Property
Public ReadOnly Property NextPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NextPageButtonToolTip
Get
Return "下一页"
End Get
End Property
Public ReadOnly Property NoMoreMatches As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NoMoreMatches
Get
Return "无匹配项"
End Get
End Property
Public ReadOnly Property NullCheckBoxText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NullCheckBoxText
Get
Return "空值"
End Get
End Property
Public ReadOnly Property NullCheckBoxToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NullCheckBoxToolTip
Get
Return "空值"
End Get
End Property
Public ReadOnly Property NullValueText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NullValueText
Get
Return "空值"
End Get
End Property
Public ReadOnly Property PageOf As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PageOf
Get
Return "页"
End Get
End Property
Public ReadOnly Property PageSetupButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PageSetupButtonToolTip
Get
Return "页面设置"
End Get
End Property
Public ReadOnly Property PageSetupMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PageSetupMenuItemText
Get
Return "页面设置"
End Get
End Property
Public ReadOnly Property ParameterAreaButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ParameterAreaButtonToolTip
Get
Return "参数设置区"
End Get
End Property
Public ReadOnly Property PasswordPrompt As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PasswordPrompt
Get
Return "请输入密码:"
End Get
End Property
Public ReadOnly Property PreviousPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PreviousPageButtonToolTip
Get
Return "前一页"
End Get
End Property
Public ReadOnly Property PrintButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintButtonToolTip
Get
Return "打印"
End Get
End Property
Public ReadOnly Property PrintLayoutButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintLayoutButtonToolTip
Get
Return "打印"
End Get
End Property
Public ReadOnly Property PrintLayoutMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintLayoutMenuItemText
Get
Return "打印"
End Get
End Property
Public ReadOnly Property PrintMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintMenuItemText
Get
Return "打印"
End Get
End Property
Public ReadOnly Property ProgressText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ProgressText
Get
Return "正在生成报表......"
End Get
End Property
Public ReadOnly Property RefreshButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.RefreshButtonToolTip
Get
Return "刷新"
End Get
End Property
Public ReadOnly Property RefreshMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.RefreshMenuItemText
Get
Return "刷新"
End Get
End Property
Public ReadOnly Property SearchTextBoxToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.SearchTextBoxToolTip
Get
Return "查找"
End Get
End Property
Public ReadOnly Property SelectAll As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.SelectAll
Get
Return "全选"
End Get
End Property
Public ReadOnly Property SelectAValue As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.SelectAValue
Get
Return "SelectAValue"
End Get
End Property
Public ReadOnly Property StopButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.StopButtonToolTip
Get
Return "停止"
End Get
End Property
Public ReadOnly Property StopMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.StopMenuItemText
Get
Return "停止"
End Get
End Property
Public ReadOnly Property TextNotFound As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.TextNotFound
Get
Return "未找到"
End Get
End Property
Public ReadOnly Property TotalPagesToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.TotalPagesToolTip
Get
Return "总页数"
End Get
End Property
Public ReadOnly Property TrueValueText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.TrueValueText
Get
Return "正确值"
End Get
End Property
Public ReadOnly Property UserNamePrompt As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.UserNamePrompt
Get
Return "用户名"
End Get
End Property
Public ReadOnly Property ViewReportButtonText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ViewReportButtonText
Get
Return "显示报表"
End Get
End Property
Public ReadOnly Property ViewReportButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ViewReportButtonToolTip
Get
Return "显示报表"
End Get
End Property
Public ReadOnly Property ZoomControlToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomControlToolTip
Get
Return "缩放"
End Get
End Property
Public ReadOnly Property ZoomMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomMenuItemText
Get
Return "缩放"
End Get
End Property
Public ReadOnly Property ZoomToPageWidth As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomToPageWidth
Get
Return "页宽"
End Get
End Property
Public ReadOnly Property ZoomToWholePage As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomToWholePage
Get
Return "整页"
End Get
End Property
End Class
第二步:创建对像,设置REPORTVIEWERR控件的MESSAGEs属性
ReportViewer1.Messages = New ReportViewerMessagesZhcn
Public Class ReportViewerMessagesZhcn
Implements IReportViewerMessages
Public ReadOnly Property BackButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.BackButtonToolTip
Get
Return "后退"
End Get
End Property
Public ReadOnly Property BackMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.BackMenuItemText
Get
Return "后退"
End Get
End Property
Public ReadOnly Property ChangeCredentialsText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ChangeCredentialsText
Get
Return "更改"
End Get
End Property
Public ReadOnly Property CurrentPageTextBoxToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.CurrentPageTextBoxToolTip
Get
Return "当前页"
End Get
End Property
Public ReadOnly Property DocumentMapButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.DocumentMapButtonToolTip
Get
Return "文档视图"
End Get
End Property
Public ReadOnly Property DocumentMapMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.DocumentMapMenuItemText
Get
Return "文档视图"
End Get
End Property
Public ReadOnly Property ExportButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ExportButtonToolTip
Get
Return "导出"
End Get
End Property
Public ReadOnly Property ExportMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ExportMenuItemText
Get
Return "选择格式:"
End Get
End Property
Public ReadOnly Property FalseValueText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FalseValueText
Get
Return "不正确的值"
End Get
End Property
Public ReadOnly Property FindButtonText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindButtonText
Get
Return "查找"
End Get
End Property
Public ReadOnly Property FindButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindButtonToolTip
Get
Return "查找"
End Get
End Property
Public ReadOnly Property FindNextButtonText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindNextButtonText
Get
Return "下一个"
End Get
End Property
Public ReadOnly Property FindNextButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FindNextButtonToolTip
Get
Return "下一个"
End Get
End Property
Public ReadOnly Property FirstPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.FirstPageButtonToolTip
Get
Return "首页"
End Get
End Property
Public ReadOnly Property LastPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.LastPageButtonToolTip
Get
Return "最后一页"
End Get
End Property
Public ReadOnly Property NextPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NextPageButtonToolTip
Get
Return "下一页"
End Get
End Property
Public ReadOnly Property NoMoreMatches As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NoMoreMatches
Get
Return "无匹配项"
End Get
End Property
Public ReadOnly Property NullCheckBoxText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NullCheckBoxText
Get
Return "空值"
End Get
End Property
Public ReadOnly Property NullCheckBoxToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NullCheckBoxToolTip
Get
Return "空值"
End Get
End Property
Public ReadOnly Property NullValueText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.NullValueText
Get
Return "空值"
End Get
End Property
Public ReadOnly Property PageOf As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PageOf
Get
Return "页"
End Get
End Property
Public ReadOnly Property PageSetupButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PageSetupButtonToolTip
Get
Return "页面设置"
End Get
End Property
Public ReadOnly Property PageSetupMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PageSetupMenuItemText
Get
Return "页面设置"
End Get
End Property
Public ReadOnly Property ParameterAreaButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ParameterAreaButtonToolTip
Get
Return "参数设置区"
End Get
End Property
Public ReadOnly Property PasswordPrompt As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PasswordPrompt
Get
Return "请输入密码:"
End Get
End Property
Public ReadOnly Property PreviousPageButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PreviousPageButtonToolTip
Get
Return "前一页"
End Get
End Property
Public ReadOnly Property PrintButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintButtonToolTip
Get
Return "打印"
End Get
End Property
Public ReadOnly Property PrintLayoutButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintLayoutButtonToolTip
Get
Return "打印"
End Get
End Property
Public ReadOnly Property PrintLayoutMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintLayoutMenuItemText
Get
Return "打印"
End Get
End Property
Public ReadOnly Property PrintMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.PrintMenuItemText
Get
Return "打印"
End Get
End Property
Public ReadOnly Property ProgressText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ProgressText
Get
Return "正在生成报表......"
End Get
End Property
Public ReadOnly Property RefreshButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.RefreshButtonToolTip
Get
Return "刷新"
End Get
End Property
Public ReadOnly Property RefreshMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.RefreshMenuItemText
Get
Return "刷新"
End Get
End Property
Public ReadOnly Property SearchTextBoxToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.SearchTextBoxToolTip
Get
Return "查找"
End Get
End Property
Public ReadOnly Property SelectAll As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.SelectAll
Get
Return "全选"
End Get
End Property
Public ReadOnly Property SelectAValue As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.SelectAValue
Get
Return "SelectAValue"
End Get
End Property
Public ReadOnly Property StopButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.StopButtonToolTip
Get
Return "停止"
End Get
End Property
Public ReadOnly Property StopMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.StopMenuItemText
Get
Return "停止"
End Get
End Property
Public ReadOnly Property TextNotFound As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.TextNotFound
Get
Return "未找到"
End Get
End Property
Public ReadOnly Property TotalPagesToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.TotalPagesToolTip
Get
Return "总页数"
End Get
End Property
Public ReadOnly Property TrueValueText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.TrueValueText
Get
Return "正确值"
End Get
End Property
Public ReadOnly Property UserNamePrompt As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.UserNamePrompt
Get
Return "用户名"
End Get
End Property
Public ReadOnly Property ViewReportButtonText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ViewReportButtonText
Get
Return "显示报表"
End Get
End Property
Public ReadOnly Property ViewReportButtonToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ViewReportButtonToolTip
Get
Return "显示报表"
End Get
End Property
Public ReadOnly Property ZoomControlToolTip As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomControlToolTip
Get
Return "缩放"
End Get
End Property
Public ReadOnly Property ZoomMenuItemText As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomMenuItemText
Get
Return "缩放"
End Get
End Property
Public ReadOnly Property ZoomToPageWidth As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomToPageWidth
Get
Return "页宽"
End Get
End Property
Public ReadOnly Property ZoomToWholePage As String Implements Microsoft.Reporting.WinForms.IReportViewerMessages.ZoomToWholePage
Get
Return "整页"
End Get
End Property
End Class
第二步:创建对像,设置REPORTVIEWERR控件的MESSAGEs属性
ReportViewer1.Messages = New ReportViewerMessagesZhcn
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询