Glossary Item Box
ActiveReports provides HTTPHandler components that, upon configuration, allow ASP.NET to automatically process reports that have been placed into an ASP.NET web site folder. ActiveReports HTTPHandler components enable reports to be easily deployed in both HTML and PDF. ActiveReports includes a simple configuration utility to properly register the HTTPHandler components with IIS and ASP.NET.
This walkthrough illustrates how to create a simple Web application and set the HTTPHandler to output report information in HTML format.
This walkthrough is split up into the following activities:
To complete the walkthrough, you must have access to the NorthWind database (NWind.mdb). You must also have access to Internet Information Services either from your computer or from the server. You must also run the "Configure Web Sample" option from the Data Dynamics ActiveReports for .NET 2.0 program menu from your Windows Start button.
When you have completed this walkthrough, you will have a report that looks similar to the following.
Important: If you are using Visual Studio.NET 2005, please see the Visual Studio.NET 2005 Web Changes topic.
To add an ActiveReport to your project
To connect the report to a data source and add a parameter to the report's Parameters collection
To add controls to the report
Control | DataField | Name | Text/Caption | Location | OutputFormat |
---|---|---|---|---|---|
TextBox | CompanyName | txtCompanyName | Customer Name | 0, 0 | (Empty string) |
TextBox | ContactName | txtContactName | Contact Name | 3, 0 | (Empty string) |
TextBox | Phone | txtPhone | Phone | 5, 0 | (Empty string) |
To add code to the Web.config file
<httpHandlers> <!-- ********** ActiveReports HttpHandler Configuration ********** --> <add verb="*" path="*.rpx" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=3.0.0.1592, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.ActiveReport" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=3.0.0.1592, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.ArCacheItem" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=3.0.0.1592, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> </httpHandlers>
Note The version number and PublicKeyToken will need to be updated to reflect the information for the current version of ActiveReports installed on your computer.
To add a link to the Web Form
<a href="rptCustomers.rpx?Country=USA">Customer Phone List for USA</a>
See Also |
Tasks: Visual Studio.NET 2005 Web Changes
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.