Retrieve parameter values in Reporting WCF Service RenderAsync method on server side

2 posts, 0 answers
  1. Ben Jones
    Ben Jones avatar
    12 posts
    Member since:
    Jun 2009

    Posted 09 Mar 2012 Link to this post


    I'm attempting to create a report for a silverlight client using the Silvleright Reporting Service proxy class, in particular the RenderAsync method which takes a NameValueDictionary as the report parameters. My problem is that when I add a parameter in with the key "reference", and call the method for a particular report (which resides in the WCF application housing the Reporting Sevice, the passed parameter does not populate the corresponding parameter value in the report.

    If the parameters created in the report are not meant ot be automatically popualted using this method, how can I retrieve the passed in parameters? I have a breakpoint in the constructor of the reporty I am trying to generate and I want to call a method to populate an object DataSource using the passed in parameter.

    Kind Regards

  2. Peter
    Peter avatar
    1631 posts

    Posted 09 Mar 2012 Link to this post

    Hi Ben,

    It seems that you have used the Report Parameter definition item instead of the processing counterpart. The definition report parameter value is actually the default value. The processing value is available in the report processing states but our suggestion is to bind the datasource parameter to the report parameter declaratively as shown in the ObjectDataSource Wizard and Using Parameters with the ObjectDataSource Component

    Additionally if you want to access the report parameters processing value check out the Using Report Parameters programmatically.

    the Telerik team
    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
Back to Top