Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / productivity / SharePoint

Working with SharePoint Report Server 2012 using URL Parameters in SSRS 2008/2012 in SharePoint Integrated Mode - Part Two

4.89/5 (2 votes)
5 Mar 2017CPOL1 min read 3.8K  
How to work with SharePoint Report Server 2012 using URL parameters in SSRS 2008/2012 in SharePoint integrated mode

In my previous post, I explained how to pass the custom URL parameter to the Report when it is SharePoint Integrated Mode.

As explained in the earlier post, report server parameter has three parts:

<prefix>:<Parameter Name>= <Value>
Parameter TypePrefixNote
Report Viewer Controlrc:Report Server HTML controller
Report Serverrs:Report Server to process
Report Viewer Web Partrv:Web part parameters
Report Parametersrp:Report parameters (explained in Part one)

When you are running the Report Server under SharePoint, you can access the report Server using /_vti_bin/reportserver.

You can find a similar page if report server is running.

image

rc:

This is for passing parameters to Report Server HTML viewer.

Here is the list of parameters:

  • rc:Parameters
  • rc:Zoom
  • rc:Section
  • rc:FindString
  • rc:StartFind
  • rc:EndFind
  • rc:FallbackPage
  • rc:GetImage
  • rc:Icon
  • rc:Stylesheet

Example: http://mysharePoint/_vti_bin/ reportserver?<Document Library URL>&rc:Parameters=Collapsed

There are few other options you can find using the following link:

Reference: https://msdn.microsoft.com/en-us/library/ms152835.aspx

rv:

This is used to pass parameters to Report Server Web Part.

These are the parameters for SharePoint Report Server Web Part.

  • rv:Toolbar
  • rv:HeaderArea
  • rv:DocMapAreaWidth
  • rv:AsyncRender
  • rv:ParamMode
  • rv:DocMapMode
  • rv:DockToolBar
  • rv:ToolBarItemsDisplayMode

Example: http://mysharePoint/_vti_bin/ reportserver?<ReportURL.RDL>&rv:Toolbar=full

Reference: https://msdn.microsoft.com/en-us/library/ms152835.aspx

rs:

These parameters are sent to the Report Server itself.

These are the parameters for SharePoint Report Server. There are two kind of parameters.

rs:Command

  • listChildren
  • GetChildren
  • Render
  • GetDataSourceContents
  • GetResourceContents

Example:

http://<mySharePOint>/_vti_bin/reportserver?<Document Library>&rs:Command=GetChildren

  • rs:Format
  • rs:ParameterLanguage
  • rs:Snapshot
  • rs:PersistStreams
  • rs:GetNextStream
  • rs:SessionID
  • rs:ClearSession
  • rs:ResetSession
  • rs:ShowHideToggle

http://<mySharePOint>/_vti_bin/reportserver?<Document Library>&rs:Format=PDF

Reference: https://msdn.microsoft.com/en-us/library/ms152835(v=sql.110).aspx

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)