Partilhar via


Interface IReportViewerMessages

Allows applications to provide customized user interface messages.

Namespace:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (em Microsoft.ReportViewer.WebForms.dll)

Sintaxe

'Declaração
Public Interface IReportViewerMessages
public interface IReportViewerMessages
public interface class IReportViewerMessages
type IReportViewerMessages =  interface end
public interface IReportViewerMessages

O tipo IReportViewerMessages expõe os membros a seguir.

Propriedades

  Nome Descrição
Propriedade pública BackButtonToolTip Provides the ToolTip text for the Back button.
Propriedade pública ChangeCredentialsText Provides the text for the Change Credentials button.
Propriedade pública ChangeCredentialsToolTip Provides the ToolTip text for the Change Credentials button.
Propriedade pública CurrentPageTextBoxToolTip Provides the ToolTip text for the Current Page text box.
Propriedade pública DocumentMap Provides the title text for the Document Map panel.
Propriedade pública DocumentMapButtonToolTip Provides the ToolTip text for the Document Map button.
Propriedade pública ExportButtonText Provides the text for the Export button.
Propriedade pública ExportButtonToolTip Provides the ToolTip text for the Export button.
Propriedade pública ExportFormatsToolTip Provides the ToolTip text for the Export Formats drop-down list box.
Propriedade pública FalseValueText Provides the text for a false value.
Propriedade pública FindButtonText Provides the text for a Find button.
Propriedade pública FindButtonToolTip Provides the ToolTip text for the Find button.
Propriedade pública FindNextButtonText Provides the text for the Find Next button.
Propriedade pública FindNextButtonToolTip Provides the ToolTip text for the Find Next button.
Propriedade pública FirstPageButtonToolTip Provides the ToolTip text for the First Page button.
Propriedade pública InvalidPageNumber Provides the text for the invalid page number message.
Propriedade pública LastPageButtonToolTip Provides the ToolTip text for the Last Page button.
Propriedade pública NextPageButtonToolTip Provides the ToolTip text for the Next Page button.
Propriedade pública NoMoreMatches Provides the text for the no more matches message.
Propriedade pública NullCheckBoxText Provides the text for the Null check box.
Propriedade pública NullValueText Provides the text for a nulluma referência nula (Nothing no Visual Basic) value.
Propriedade pública PageOf Provides the text for the pagination message.
Propriedade pública ParameterAreaButtonToolTip Provides the ToolTip text for the Parameter Area button.
Propriedade pública PasswordPrompt Provides the text for the password prompt.
Propriedade pública PreviousPageButtonToolTip Provides the ToolTip text for the Previous Page button.
Propriedade pública PrintButtonToolTip Provides the text for the Print button.
Propriedade pública ProgressText Provides the text for the progress message that is displayed when a report is processing.
Propriedade pública RefreshButtonToolTip Provides the ToolTip text for the Refresh button.
Propriedade pública SearchTextBoxToolTip Provides the ToolTip text for the Search text box.
Propriedade pública SelectAll Provides the text for the Select All item in a multivalue drop-down list box.
Propriedade pública SelectAValue Provides the text for the Select a value prompt.
Propriedade pública SelectFormat Provides the text for the select format prompt.
Propriedade pública TextNotFound Provides the text for the 'text not found' message.
Propriedade pública TodayIs Provides the text for the 'Today is…' message in the calendar control.
Propriedade pública TrueValueText Provides the text for a true value.
Propriedade pública UserNamePrompt Provides the text for the user name prompt.
Propriedade pública ViewReportButtonText Provides the text for the View Report button.
Propriedade pública ZoomControlToolTip Provides the ToolTip for the Zoom control.
Propriedade pública ZoomToPageWidth Provides the text for the Zoom To Page Width option.
Propriedade pública ZoomToWholePage Provides text for the Zoom To Whole Page item.

Superior

Comentários

You can implement the IReportViewerMessages interface to provide custom localization of the ReportViewer control user interface. This implementation can be passed to the ReportViewer control by adding a custom application setting to the the web.config configuration file using the key “ReportViewerMessages”.

For example:

<appSettings>

<add key="ReportViewerMessages" value="MyClass, MyAssembly" />

</appSettings>

Note   Please see Configurações de Web.config para ReportViewer for more information on web configuration settings.

Returning a nulluma referência nula (Nothing no Visual Basic) string value for a property will cause the ReportViewer control to display the original user interface string for that item.

Exemplos

The following code is an example of a class that implements the IReportViewerMessages interface.

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
    }
}

Consulte também

Referência

Namespace Microsoft.Reporting.WebForms