ReportViewer Web Server Control

2,571 views

Published on

Introduction to ReportViewer Web Server Control, embed in your ASP.NET webapplications. Pro and contra.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,571
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ReportViewer Web Server Control

  1. 1. 20 August, 2009<br />ReportViewer Web Server Control,by Wim Roegiers<br />
  2. 2. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Definition<br />The ReportViewer controls are used to host reports that you create in Microsoft Visual Studio 2005. <br />There are two versions of the control: <br />ReportViewer Web server control for ASP.NET pages, and <br />ReportViewer Windows Forms control that you can use with Windows Forms applications. <br />Visual Studio determines which version to use based on the type of project you are using to embed the control. If you are embedding the ReportViewer control on an ASP.NET project, for example, you get the Web server control automatically.<br />
  3. 3. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Twoversions<br />SQL Server 2005 Reporting Services comes with two Report Viewer controls :<br /> ASP.NET Web Forms Report Viewer<br /> Windows Forms Report Viewer<br />
  4. 4. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />ReportViewer<br />
  5. 5. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Two processing modes<br />Each of the Report Viewer controls has the ability to work in two different modes:<br />Server mode: the Report Viewer control uses a Server report with the .rdl extension.<br />Client mode: the Report Viewer control uses a Client report with the .rdlc extension.<br />
  6. 6. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Client vs server reports<br /> Client report designer lacks any tabs<br /> Data for a client report lives outside of the report file elsewhere in the project ( example : a method that returns IEnumerable&lt;T&gt; )<br /> The client report requires a Report Viewer control in order to be rendered<br /> A client report functions independently of SQL Server Reporting Services and does not require Reporting Services<br />
  7. 7. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Tip<br />You can convert server (.rdl) reports to and from client (.rdlc) reports. <br />For details on how, open the Visual Studio Help Search window and search for “Converting RDL and RDLC Files”.<br />
  8. 8. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Advantages<br />Can print te report<br />Can Export to PDF & Excel<br />Can zoom in & out<br />No sql server needed, one dependency less<br />Connect directly to ( already existing ) data mechanisms in your project<br />
  9. 9. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Disadvantages<br />Without hacking the control only works/renders well in Internet Explorer -&gt; Thats why i only use it to debug & to export to pdf in the background.<br />It does not work together with updatepanels<br />
  10. 10. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Look into Code ( Suppliers’ Net )<br />Show control<br />Show Report Designer in VS<br />Show ReportDataSource binding (IsoReportgenerator)<br />Show Parameters (IsoReportgenerator)<br />...<br />
  11. 11. 20 August, 2009<br />ReportViewer Web Server Control, by Wim Roegiers<br />Resources<br />http://msdn.microsoft.com/en-us/library/ms251771(VS.80).aspx<br />
  12. 12. ReportViewer Web Server Control, by Wim Roegiers<br />20 August, 2009<br />

×