Download: Sample Code for ReportViewer

Check out sample code that shows how to use Visual Studio 2005's new ReportViewer controls to design and embed custom reports in your projects.

.NET developers commonly add data-reporting features to smart-client and Web-based projects. VS 2005's new ReportViewer control and its built-in Report Designer enable smart-client and Web page designers to lay out, format, embed, export, and print interactive reports without running a SQL Server Report Server.

Don't let the scarcity of documentation for the Report Designer and ReportViewer combination dissuade you from considering this useful new control for integrating tabular and crosstab reports, as well as charts and graphs, in your .NET 2.0 WinForms and WebForms projects.

Download this VB 2005 sample code that includes smart-client examples of tabular and crosstab reports generated from the AdventureWorks and Northwind sample databases. (To run the demonstration projects, you need SQL Server 2005 or SQL Express with the AdventureWorks 2005 and Northwind sample databases installed.) The ZIP file features four projects: AWTestWinForm, NWTestWinForm, ReportSmartClient, and ReportWebSite.

About the Author

Roger Jennings is an independent XML Web services and database developer and writer. His latest books include "Special Edition Using Microsoft Office Access 2007" (QUE Books, 2007) and "Expert One-on-One Visual Basic 2005 Database Programming" (WROX/Wiley, 2005). He’s also a VSM contributing editor and online columnist and manages the OakLeaf Systems blog. Jennings’ Code of Federal Regulations Web services won Microsoft’s 2002 .NET Best Horizontal Solution Award. Reach him at

comments powered by Disqus
Upcoming Events

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.