Set reportviewer properties through javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QnJ1Y2UgUGFya2Vy?=

    #1

    Set reportviewer properties through javascript

    I have embedded a ReportViewer control in an aspx page. I want to be able to
    set the ReportPath in the ServerReport tag from javascript and then get the
    report to refresh itself without the whole page posting back.

    <rsweb:ReportVi ewer ID="ReportViewe r1" runat="server" Width="100%"
    Height="500px" Font-Names="Verdana" Font-Size="8pt"
    ProcessingMode= "Remote">
    <ServerReport ReportPath="/Production/InternalMetrics/Active
    Employee Report"
    ReportServerUrl ="http://itautomation/reportserver" />
    ....

    <script type="text/javascript">
    function MainBodyMethod( reportPath) {
    /* set report path */
    }
    </script>

    How do I do this?


    </rsweb:ReportVie wer>



  • Hongye Sun [MSFT]

    #2
    RE: Set reportviewer properties through javascript

    You are welcome, Bruce. It is also my pleasure to work with you.

    Thanks for using Microsoft Newsgroup Service.

    Regards,
    Hongye Sun (hongyes@online .microsoft.com, remove 'online.')
    Microsoft Online Community Support

    Delighting our customers is our #1 priority. We welcome your comments and
    suggestions about how we can improve the support we provide to you. Please
    feel free to let my manager know what you think of the level of service
    provided. You can send feedback directly to my manager at:
    msdnmg@microsof t.com.
     
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Comment

    Working...