Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 575561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:57:13+00:00 2026-05-13T13:57:13+00:00

I have a situation where I need my report server to be more-or-less publicly

  • 0

I have a situation where I need my report server to be more-or-less publicly accessible, as we are using the ReportViewer control in an ASP.NET web application and groups of users will be accessing a variety of reports.

This will be running against SQL Server 2008 Standard Edition.

Security will be handled by creating linked reports (one for each user, published at run time when they request the report from our web app) but I’m having difficulty setting the linked report parameter values programmatically.

In a nutshell, a report has a small number of reserved parameter names (for example, UserID and LanguageID). At run time, the web app will check if the user has a linked report (using unique linked report names for each report/user) and create one if it does not exist.

This is being done using the SSRS SOAP API and is working great. The problem I’m having is in setting the report parameters for a linked report.

For example, if I log in as a sysadmin, I just want to see the report and have full reign over the parameters inside the report viewer. If I log in as a “low” user, I expect the UserID parameter to be set to my ID in the linked report, and not be able to change the UserID to snoop at other users’ reports.

This can be accomplished manually in Report Manager by opening the linked report’s properties and setting the parameter default values and unchecking the “Prompt User” box.

Now I’m trying to do that programmatically using the SOAP API and can’t seem to find the correct way to do this.

I read hints in a few places that the CreateLinkedReport method can set parameters, but I’m beginning to think this is just a misunderstanding on the part of the authors. While this method does accept a Property[] properties, these properties only appear to provide report metadata (such as the linked report name).

Is there a special markup I need to use with the property name/values to indicate the property is a report parameter?

Any ideas are greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:57:14+00:00Added an answer on May 13, 2026 at 1:57 pm

    Ah! Got it!

    There are 2 SOAP methods:
    GetReportParameters and SetReportParameters

    They are documented as working with reports, which are very much not linked reports, but this bit of functionality in the API appears to work with both.

    For any future searchers:
    I’ve written a method to receive a ReportParameter[] (the result of GetReportParameters called on the linked report) and iterate through them. Pseudo/almostC# code:

    ReportParameter[] reportParameters = ReportingService2005.GetReportParameters(LinkedReportName);
    foreach( ReportParameter reportParameter in reportParameters)
    {
       switch(reportParameter.Name)
       {
          case "ReservedParam1":
             reportParameter.DefaultValues = new string[1];
             reportParameter.DefaultValues[0] = CalculateReservedParam1();
             reportParameter.PromptUser = false;
          //etc
       }
    }
    try
    {
       ReportingService2005.SetReportParameters(reportParameters);
    }
    catch (Exception e)
    {
       // if error occurs while replacing params, delete linked report so user can't specify parameters they aren't entitled to
       ReportingService2005.DeleteItem(LinkedReportName);
       throw e;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a situation where I need to update a control referenced in a
I have a situation where I need to hide columns of the report when
i have the following situation, i have a Reporting layer(stand alone) in asp.net application(NOT
I'm using mysql/php/apache . I have the following situation: 2 tables where I need
I have situation where I need to change the order of the columns/adding new
I have a situation where I need to dynamically build up a list of
I have a situation where I need to pass two parameters to an action.
I have a situation where I need to notify some users when something in
I have a situation where I need to find the value with the key
I have a situation where i need to send commands to a running java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.