Minimize
08

Reporting Services includes the ReportViewer Server Control as one example that can be installed when you install Reporting Services. It can be reused for most if not all of your report viewing needs to build reports into your applications. In this article, I will discuss ways to implement the ReportViewer Server Control into a Reporting Services web application. I’ll also talk about URL access to reports and why I chose to use that type of access.

 


Here are some examples from MSDN online that show URL access commands…



  • URL Access – A way to run and navigate reports in a Web browser.

    • rc:Toolbar – Used to show or hide the toolbar. If the value of this parameter is false, all remaining options are ignored. If you omit this parameter, the toolbar is automatically displayed for rendering formats that support it. The default of this parameter is true.
    • rc:Zoom – Used to set the report zoom value as an integer percentage or a string constant. Standard string values include Page Width and Whole Page. This parameter is ignored by versions of Microsoft Internet Explorer earlier than Internet Explorer 5.0 and all non-Microsoft browsers. The default value of this parameter is 100.
    • rc:Parameters – Used to show or hide the parameters area of the toolbar. If you set this parameter to a value of true, the parameters area of the toolbar is displayed. The default value of this parameter is true.
    • Example -- http://MyWebServer/reportserver/PVPortal/MissingTime?/PVPortal/MissingTime&rs:Command=Render&rc:Parameters=false

 

REPORTVIEWER ASSEMBLY


 

There are two flavors of Server Control to select from, either C# or VB.net. Check out the code and see how this class is using commands to render reports within Reporting Services. This control is only a wrapper to Reporting Services, making it easier for writing specific commands through QueryStrings to the ReportingServices Server instead of using the Report Manager to view reports.

 


The ReportViewer Server Control can be found in the following directory (if you’ve installed the samples on the C drive): C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\Samples\Applications

PASSING REPORT PARAMETERS AS QUERYSTRINGS


 


Because Reporting Services uses report commands thru URL access lets look at some advantages and disadvantages of using QueryStrings to pass these commands.


The advantages of using query strings are:


·         No server resources required. The query string is contained in the HTTP request for a specific URL.


·         Broad support. Almost all browsers and client devices support passing values in a query string.


·         Simple implementation. ASP.NET provides full support for the query string method, including methods of reading query strings using the HttpRequest.Params property.


·         Provides an alternative for passing information from Web Application to another


·         Reporting Services utilizes QueryStrings


The disadvantages of using query strings are:


·         Security. The information in the query string is directly visible to the user via the browser user interface. The query values are exposed to the Internet via the URL so in some cases security may be an issue.


·         Limited capacity. Most browsers and client devices impose a 255-character limit on URL length.


 


Next I will go step by step on how to implement the ReportViewerServerControl within a Web Application an approach to actually sending the report selection criteria through query strings.


Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

LatestArticles Minimize
Changing Granularity of Leaf Level Calculations in SSAS Tabular by Jason Thomas

Finding Nearest Stores using SSRS Map Reports by Jason Thomas

Heat Maps for SSRS using Map Control by Jason Thomas

Parameters for Analysis Services Reporting: Introduction, Pt. 3 by William Pearson
BI Architect Bill Pearson continues an extended examination of parameterization within Analysis Services reports. In this, Part 3 of the article, we continue to get hands-on practice cr...

Parameters for Analysis Services Reporting: Introduction, Pt. 2 by William Pearson
BI Architect Bill Pearson continues an extended examination of parameterization within Analysis Services reports. In this, Part 2 of the article, we continue to get hands-on practice cr...

Using Annotation Tables in SSAS to Show Last Processed Time and Latest Data Updates as a Measure in a Cube by John Hall

Using Color in SSRS Charts by Melissa Coates
Effective data presentation techniques help users  interpret information quickly and reliably.  Layout, formatting, sizing, labeling, and other report elements may all be used to facilitate ...

Is TOAD faster than BIDS Query Builder? by John Hall

SSRS: Unexplained Warning “This field is missing from the returned result set from the data source” And Checking a Field for Null Exception by John Hall
If you ever see the warning message “This field is missing from the returned result set form the data source” and get unexplained #Errors in columns on your report it may be from SSAS not returning a ...

Beyond Excel pivot tables: Leveraging cube formulas with MDX by Javier Guillen
PowerPivot and DAX are a powerful technologies, but there is still a good amount of work that can be done with traditional cube functions. In its current version, PowerPivot lacks the concept of ...


Advertisement Minimize

Advertisement Minimize

Copyright 2004-2012 MSBICentral.com Terms Of Use Privacy Statement