Changing the "Loading ..." progress bar in SSRS reports after clicking the "View Report" button

I want to change the message "Loading ..." while downloading the report: "The report is loading, please wait, it will take a few seconds ...". Any way to change this ?.

Note. I am not using an ASP.NET application. I need this to be done in SSRS.

Thank you for your time.

+5
source share
3 answers

Another way I did this in an ASP.NET application is to implement IReportViewerMessages.

Change ProgressText Property

string IReportViewerMessages.ProgressText
        {
            get
            {
                return ("Please Wait... This will take some time");
            }
        }

Other properties: Just Returning null. This inturn takes the base values ​​given in the link below.

string IReportViewerMessages.BackButtonToolTip
        {
            get { return null; }
        }

web.config

<appSettings>
    <add key="ReportViewerMessages" value="MyNamespace.MyRVMessageClass, MyAssembly" />
</appSettings>

, , .

http://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.ireportviewermessages(v=vs.80).aspx

, BIDS SSRS.

+1

, SSRS. get.

http://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.ireportviewermessages.progresstext.aspx

, , .

ASP.NET, javascript.

, -, @Harri.

, ASP.NET. , . , .

:

<div id="ReportViewerDisplay_AsyncWait_Wait" style="cursor:wait;background-color:#DC9CE4;padding:15px;border:1px solid black;display:none;position:absolute;">
        <table height="100%">
            <tr>
                <td width="32px" height="32px">
                    <img src="/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=10.0.30319.1&amp;Name=Microsoft.Reporting.WebForms.Icons.SpinningWheel.gif" style="height:32px;width:32px;"/>
                </td>
                <td style="vertical-align:middle;text-align:center;">
                    <span style="font-family:Verdana;font-size:14pt;">Loading...</span>

                    <div style="margin-top:3px;">
                        <a href="javascript:$get(&#39;ReportViewerDisplay_AsyncWait&#39;).control._cancelCurrentPostback();" style="font-family:Verdana;font-size:8pt;color:#3366CC;">Cancel</a>
                    </div>
                </td>
            </tr>
        </table>
    </div>

ASP:           get (arg) {

         var divTag = document.getElementsByName('ReportViewerDisplay_AsyncWait_Wait');
            if (divTag != null ) {
                var tableTag = divTag.item(0);
                var rowTag = tableTag.childNodes[0];
                var columnTag = rowTag.childNodes[0];
                var tdtag = columnTag.childNodes[0];
                var spantag = tdtag.childNodes[0].nextSibling.childNodes[0];
                spantag.outerText = arg;
            }
     };
  </script>

:

protected void ReportViewerDisplay_PreRender(object sender, EventArgs e)
        {
            ClientScriptManager cs = Page.ClientScript;
            cs.RegisterStartupScript(typeof(Page), "PrintScript_" + UniqueID, "get('Please Wait');", true);
        }

. ReportViewerDisplay - ReportViewer.

, .

+1

(gif), . , : ReportViewer?.

0

All Articles