Ssrs 2008 r2 use 'Globals!ReportServerUrl in url

In a SSRS 2008 R2 report, I am able to have the users open a pdf document in a new window by using the following code in the action field of a textbox property:
My goal is not to hard code the url path. I would like the url path to be dynamic based upon which report server the ssrs report is running from.
Basically I would like to replace the with the Globals!ReportServerUrl variable that report server has a available.
I would like to replace the above expression with the following:
="javascript:void('Globals!ReportServerUrl/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))". However this expression does not work.
Thus can you tell me how to use the Globals!ReportServerUrl ssrs item with the javasctript window open statement so that the expression works correctly?

Hi Wendy,
If we are put Globals!ReportServerUrl expression in the “”, in Reporting Services, it will recognize it as a string data. So, it cannot display as report server URL.
Please refer to the following expression:
= Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf”
If you have any questions, please feel free to let me know.
Alisa Tang
If you have any feedback on our support, please click
Alisa Tang
TechNet Community Support

Similar Messages

  • Ssrs 2008 r2 use parameters for sorting purposes

    In an ssrs 2008 r2 report, I have a report where a user wants to sort a report based upon the following parameters:
       1. lastName,
       2. firstName, 
       3. studentNumber,
       4. [School Name].
    The above is the default order of how the user wants to be able to sort the report.
    The following is the definition and the columns that are to appear in the report:
             studentNumber varchar(15)
     ,lastName varchar(40)
     ,firstName varchar(35)
     ,[School Name]  varchar(40)
     ,[School of Assignment] CHAR(3)
     ,grade varchar(4)
     , Description varchar(50)
     ,[Beginning Date] smalldatetime
    The above columns are all contained in one tablix.
    The user wants to be able to sort the report by changing the parameters that I just listed
    Thus can you show me code and/or point me to a url that would show me how to allow the user to sort
    the report in any order based upon the 4 parameters listed above?

    The interactive sort is not what the user wants. The user wants to be able to change the default sort order by using a sort parameter value.
    I know that the tablix and the detail rows of a report have a sort option. I want to be able to connect, the sort parameter values with the tablix sort. I have seen on the internet where each sort parameter value can be represented with a number value.
    I don't  care what is easier, I want to do what the user is requesting. Thus can you show me code on how to accomplish this goal?
    Ok. I just gave you a better option
    If you still want it to be based on parameters you can add one more parameter to your report called SortBy with values of your fields. Then inside sor expresson for your tablix use an expression like
    and it will automtically sort based on field you choose from parameter
    Only thing you need to make sure is that values given for SortBy parameter combo should be exactly same as your field names used in your report dataset.
    Please Mark This As Answer if it helps to solve the issue Visakh ----------------------------

  • Ssrs 2008 r2 using parameter values

    In an existing ssrs 2008 r2 report, I have a requirement from a user where they want to add 2 more parameters to the report. Right now there is an option where the user can choice to generate report1, report2, report3, report4, report5, report6, report7,
    report8, and/or any combination of the reports I just listed.
    This is setup by using an expression in the visibility property for each of the 8 tablixes.
    For your information, the following is an example of how to display one of the reports or not:
    Now the user wants to be able to add the parameters of customer and inventory_item based upon if report7 and/or or report8 is selected.
    Now can you tell me the following:
    1. Would you show me the code I can use in the dataset to select report7 and/or report8?   
     2. If the above is not possible to select specific reports, then would the dataset query need to look something like: where @report is null or where @report is not null? What would you suggest?

    Hi midnight_car,
    According to your description, you have specified visibility for each tablix in a report with IIF() function. When you select 7 or 8, you want to add an additional parameter to filter displayed tablixes, right?
    In Reporting Services, since we can’t specify the visibility of a parameter as an expression, we could add a cascading parameter. When the first value is 7 or 8, then selected values from the cascading parameter can filter the displayed tablixes. Please
    refer to steps below:
    1. Sample data.
    2. Create a new dataset with the query below:
    select distinct SalesTerritoryRegion as region from dbo.DimSalesTerritory
    where SalesTerritoryRegion=
    case when 3 in (@report)or 4 in (@report)
    then SalesTerritoryRegion
    else 'NA' end
    3. Specify the parameter @region using the new dataset.
    4. Query in main dataset like below:
    select SalesTerritoryRegion as region,SalesTerritoryCountry as country,SalesTerritoryGroup as [group] from dbo.DimSalesTerritory
    where SalesTerritoryRegion= case when 3 in (@report) or 4 in (@report)
    then @region
    SalesTerritoryRegion end
    4. Preview the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS 2008 R2 - Using Action to call a report with MultiValue Parameters

    I have a report uses project names as parameter(Multi value) and display some data. I want to call this report from some other report on a click (drill down). This report has a program row where it aggregates the data, underneath Programs, I have
    list of projects(group). When I use Action on the individual projects, it takes me to the appropriate project ( I used
    Fields!ProjectName.Value). However, when user clicks on the program, it should pass the group of projects within that program to the called report. With expression,  Fields!ProjectName.Value, it only select one random project (may be first/last from
    the query) and display records. I tried Join(Fields!ProjectName.Value, ",") and Fields!ProjectName.Value(0) but now it doesn't select a sengle project. Can someone help please?

    use In instead =

  • Ssrs 2008 r2 display of url value

    In an existing SSRS 2008 R2 application, the users will be clicking on url links to access help documents that are in a PDF
    format. When the user hovers over the tab in the browser, the actual web url is listed. My company thinks this can be a secruity
    Thus my question in an SSRS 2008 R2 report, is there a way to hide the real link of where the PDF document is located at? Basically is there a way to hide the real url and/or just display a url that does not really exist? If so, can you show me code on how
    to accomplish this goal?

    Hi Wendy,
    Based on my test, if we are use below expression, it will not list the URL.
    I found a work around for your previous case, please refer to the expression below:
    ="javascript:void('” & Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
    If you have any questions, please feel free to let me know.
    Alisa Tang
    If you have any feedback on our support, please click
    Alisa Tang
    TechNet Community Support

  • Prompting for UserName and Password when I click Report Server Web Service URLs in ssrs 2008 R2

    Hi All,
                 I am using SQL Server Reporting services 2008 R2 . When I tried to open report server webservice URL in SSRS 2008 R2 It is prompting username and password. I tried to resolve the issue by deleting the <!--
    <RSWindowsNegotiate/> --> line in rsreportserver.config but still I am getting the same prompt
    and i tried by putting the server URL in trusted sites in IE also still no luck. I referred the below link ''
    I am getting the same error.
    Can anyone help me out to resolve this issue easily.

    Hi Dathy,
    Generally, this is a very common issue in Reporting Services 2008 R2, the blog you post is a good blog that summary the common solutions. If it doesn’t help, could you please try the following:
    Open Internet Explorer, go to Tools and click on Internet Options.
    Under the Security tab, click on Trusted sites and click the Sites button and Add Report Manager/Report Server URL to the trusted sites.
    Then click Custom Level, and check the option Automatic logon with current user name and password.
    Repeat step 3 and step 4 for Local Intranet.
    Hope this helps.
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Use of Global Properties in URL path of XML Query

    I am trying to use global properties to define the URL of XML query:
    but it does not like it. If I put the content of the Globals.ImageFilePath it works fine. What is the synatax for that?
    I am using the XML query in a transaction within an image creation action block. When I try to define the URL parameter of the XML file as a link, it is not taken on account, and the image created has no data (it is empty). The URL is taken when defined on the Cofigure Object screen, but there I have the same problem to use the global variable parameter.
    Any suggestions?
    Edited by: Vladimir Baltchev on Jul 29, 2008 11:33 PM
    Edited by: Vladimir Baltchev on Jul 29, 2008 11:40 PM

    As I mentioned in my first posting, yes, I can put the global variable of the link editor for the URL parameter, it evaluates well, but it is not taken on account by the query, and the image generated is empty. Obviously there is a bug here, so I am trying to find a work around to use the global variable on the Configure Object screen, where the parameter URL is taken by the XML query, but on this screen I can not use the global variable. It works only if I put the content of the global variable.
    So, does anybody know if we can use global variables on a Configure Object  screen, or on the XML query URL field, and if so, what is the syntax to indicate global variable?
    Thanks again,

  • WCF Url Rewriting using global.asax

    I am doing Url Rewriting using global.asax but getting below error message. 
    Description: HTTP
    404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 
    Requested URL: /Services/MyService.svc/rest/CheckInternet
    I tested service. its working fine without url rewriting. 
    please help me to solve this issue. 
    Please "Mark as Answer" if this post answered your question. :)
    Kalpesh Chhatrala | Software Developer | Rajkot | India
    Kalpesh 's Blog
    VFP Form to C#, Vb.Net Conversion Utility

    Hi Kalpesh Chhatrala,
    I wonder if you are using the WCF Soap Service or the WCF Rest Service.
    Since your WCF Service works very well without the URI Rewriting, then it seems that you have do something wrong during the process of the URI Rewriting, so please try to refer to the following articles about how to do the URI Rewriting
    for the WCF Service: . . .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    HERE to participate the survey.

  • Globals!RenderFormat alternative for SSRS 2008

    In SSRS 2008 R2 there is Globals!RenderFormat variable that can be used to control appearance when exporting to different formats.
    Is there something similar in SSRS 2008? Specifically I am interested in conditional TextDecoration (I would like it to be Underline when report is viewed in the browser (clickable report bookmark) or None if exported to PDF)

    According to your description, you want to set conditional TextDecoration when export report to different formats.
    In Reporting Services 2008, we don't have Render Format Name Built-In Field to recognize the render formats. Then we can use parameter with conditional expression to control the visibility of underline. For more details, please refer to the following steps
    to achieve your goal:
    Create a parameter, in the Name and Prompt text box, type Type.
    Click Available Values, and add available values: Default, Pdf.
    Click Default Values, and add the default value: Default.
    In Text Box Properties dialog box, click Font, in the Effects Expression text box, type the following expression:
    Then we can select a type to control its appearance before exporting the report.
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Wendy Fu

  • Exporting CRM 2011 SSRS 2008 report to excel uses old Excel 1997-2003 version

    The Notes field is appearing cut off on the exported excel spreadsheet. I am wondering if it is related to the version of excel when exporting from CRM report. The only option is MS Excel 1997-2003, when in fact we have MS Office 2010 installed. How can
    I get the report export to excel to use the 2010 version? Will this clear up the issue of the excel cell from being too small to dispay the entire field? Any help would be appreciated, Thank you, Mark A M

    Hi Mark A M,
    In SQL Server 2008 Reporting Services, the Excel rendering extension renders a report that is compatible with Microsoft Excel 1997-2003. This is the unique renderer for Excel renderer in SSRS 2008. Since SSRS 2012, the default Excel renderer is the version
    compatible with Microsoft Excel 2007-2010. So we cannot export the report to excel use Microsoft Excel 2007-2010 version in SSRS 2008. This is by design.
    As to your issue, please note that the width of the column in Excel which inherit the width in the report. So we need make sure the cell width is sufficient to display the Notes field in report.
    Exporting to Microsoft Excel (Report Builder 2.0)
    Hope this helps.
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to Update the oracle toad column value in table by using SSRS 2008

    Hi Team,
    How to update the oracle DB table column value by using SSRS 2008.
    Can any one help me on this.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to use SSRS to update data in database table. Right?
    Though Reporting Services is mostly used for rendering data, your requirement is still can be achieved technically. You need to create a really complicated stored procedure. Pass insert/delete/update and the columns we need to insert/delete/update as
    parameters into the stored procedure. When we click "View Report", the stored procedure will execute so that we can execute insert/delete/update inside of the stored procedure. Please take a reference to two related articles below:
    Update Tables with Reporting Services – T-SQL Tuesday #005
    SQL Server: Using SQL Server Reporting Services to Manage Data
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS 2008 - HTTP Status 401: Unauthorized

    I have a WPF application which is hosting a SSRS 2008 ReportView via a WindowsFormsHost control.  I am trying to connect to a remote server to run a report, but I receive the following error:
    {"The request failed with HTTP status 401: Unauthorized."}
        [System.Net.WebException]: {"The request failed with HTTP status 401: Unauthorized."}
        Data: {System.Collections.ListDictionaryInternal}
        HelpLink: null
        InnerException: null
        Message: "The request failed with HTTP status 401: Unauthorized."
        Source: "Microsoft.ReportViewer.Common"
        StackTrace: "   at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods()
       at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname)
       at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname)
       at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)
       at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)
       at Microsoft.Reporting.WinForms.ServerReport.EnsureExecutionSession()
       at Microsoft.Reporting.WinForms.ServerReport.GetDataSources(Boolean& allCredentialsSet)
       at Microsoft.Reporting.WinForms.RSParams.GetDataSources(Boolean& allSatisfied)
       at Microsoft.Reporting.WinForms.RSParams.EnsureParamsLoaded(Boolean forceCredentialsShown, ReportParameterInfoCollection parameterInfos)
       at Microsoft.Reporting.WinForms.RSParams.EnsureParamsLoaded()
       at Microsoft.Reporting.WinForms.ReportViewer.RenderReportWithNewParameters(Int32 pageNumber)"
        TargetSite: {System.String[] GetSecureMethods()}
    Here's my environment:
    I have a Windows 2008 Server running SQL Server 2008.  This server is a virtual machine running on Hyper-V in a Virtual Private LAN and I'm using RAAS to route traffic to this virtual via a static IP.  
    I'm passing NetworkCredentials to the report for a user that can access and run reports.  I can prove this by logging in to the report server via a browser with these same credentials.
    var report = reportViewer.ServerReport;
    report.ReportServerCredentials.NetworkCredentials =
    new NetworkCredential("MACHINE-NAME\\USER","Password");
     Anyway, I've tried everything, short of disabling authentication altogether.  Has anyone experienced authentication issues with ssrs in a hosted / virtual environment?
    Any help would be greatly appreciated.

    I need help pls, I have the same problem error 401 etc...
    I implement all solution in this page and nothing..
    Help me pls.
    stringurlReportServer =
    ReportViewer1.ProcessingMode =
    // ProcessingMode will be Either Remote or Local
                    ReportViewer1.ShowExportControls =
                    ReportViewer1.ShowPrintButton =
                    ReportViewer1.ServerReport.ReportServerUrl =
    //Set the ReportServer Url
                    ReportViewer1.ServerReport.ReportPath =
    "/Reportes/"+ ReportName;
    //Passing the Report Path               
    IReportServerCredentialsirsc =
                    ReportViewer1.ServerReport.ReportServerCredentials = irsc;
                    ReportViewer1.Visible =
    string_usuario, _password, _dominio;
    _usuario = userName;
    _password = password;
                _dominio = domain;
    _password, _dominio);
    //public bool GetFormsCredentials(out System.Net.Cookie authCoki, out string userName, out string password, out string
    //    userName = _usuario;
    //    password = _password;
    //    authority = _dominio;
    //    authCoki = new System.Net.Cookie(".ASPXAUTH", ".ASPXAUTH", "/", "Domain");
    //    return true;
    // Do not use forms credentials to authenticate.
                authCookie =
                user = password = authority =

  • Report created in SSRS 2008 is not able to upload in 2008 report server

    I have created a report in SSRS 2008 version. Our reporting server is 2008 R2. I'm getting the error given below while uploading the .rdl file to report server. 
    The report definition is not valid. Details: The report definition has an invalid target namespace '' which cannot be upgraded. 
    Then I've checked the code of the solution and it is created in 2008. It is given below:
    " Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 ........."
    Also, I've checked the code of .rdl file but that made me confused. It shows that the file is created in 2010.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns:rd="" xmlns:cl="" xmlns=""> 
    Visual studio 2010 is also installed in my system. Also, I have noticed that even if we try to open a report then by default it is showing data tools option.I have tried multiple times to create report in 2008. But, still the same result. Also, I could find
    that ,the report will be in 2008 till the creation of data source. The report will be converted to 2010 after creating data set. I have been creating shared dataset and I was getting the above issue.Then I have tried by not creating a shared dataset and
    directly creating dataset in the report data and it has been created as 2008 report. I was able to upload this report to report server 2008R2. 
    Can any of you help me to find why the report is created in 2010 while creating shared dataset?

    I have created a report in SSRS 2008 version. Our reporting server is 2008 R2. .
    Hello Julie,
    You mix up Version of Visual Studio, Reporting Services and Report Definition; all those products have Independent Version numbers and are not related to each other.
    Important are the Versions of used SSRS and BIDS, the plugin for Visual Studio. By the Version of Report Definiton you have create a Report with BIDS 2008R2 or SSDT = SQL Server Data Tools; see
    Are you sure you have SSRS 2008 R2 (in post subject you wrote SSRS
    2008)? If it's SSRS 2008 then you really can't deploy the Report to SSRS, you would have to use BIDS 2008 to create the report. Check the Version of SSRS or use "Report Builder 2.0", you can start it directly from "Report Manager"
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Not being asked for credentials in SSRS 2008 R2 for Firefox and Safari

    I have an instance of SSRS 2008 that is currently working on all browsers (the URL is something like
    I spun up a new instance of SSRS and placed it on the url  This new instance is connected to a different domain (I am spining up a Active Directory Domain and trying to build out our infrastructure, so the logins are different). 
    I am able to access the new URL ( from IE and Chrome.  It is asking for the username/password and able to get on just fine.
    However, when I try to go to the new URL ( using Safari and Firefox, it never asks for credentials and shows a blank page.  This does not happen for the old URL (, only the new URL.
    Any ideas?

    Hi Ben,
    Per my understanding that you have configured windows authentication and which by default will not prompt for credential. So I assumed you have changed the User Authentication setting in the security setting to pop up for credential, for example like below(IE),
    If so, your issue about the pop up credetial not pop up in Firefox and Safari can be caused by the related security setting, If you give Anonymous User rights, you may got the blank page:
    Details information about similar issue in threads below for your reference:
    how to change reporting service site seurity setting?
    SSRS in firefox not asking for credentials
    If you still have any problem, please feel free to ask.
    Vicky Liu
    If you have any feedback on our support, please click
    Vicky Liu
    TechNet Community Support

  • Ssrs 2008 r2 black line incorrectly being displayed

    In an existing SSRS 2008 r2 report, I just added a page header so that I can display global values in the page header like run date, run time, and page number. Within the report header, I placed all the report header data within a rectangle. Now when I run
    the report, there is a black line appearing after the report header but before the details of the report.
    I have changed all the border colors to be white and the borderstyle to none. The black solid line between last part of report header to before the detail data keeps appearing.
    Thus can you tell me how to keep this black line from end of pageheader or rectangle to before the detail data from appearing?

    Hi wendy,
    According to your description, I taken a simple test in my local environment (SSRS 2008R2). In my scenario, I insert a page header in the report, then use a rectangle to contain all the items (such as global values) within the page header after creating
    a table in the report body. While everything goes well, and there is no such a black line between page header and report body.
    As per my understanding, may be you have set the BorderColor property to Black and BorderStyle to Solid of Page header or Rectangle or Report Body. So we can double check those item properties in the report.
    If this issue still exists, could you please post the .rdl file and your dataset with sample datato us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Katherine Xiong
    If you have any feedback on our support, please click
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for