ActiveReports 8
CompiledReportHandler Class
Members  See Also 
GrapeCity.ActiveReports.Web.v8 Assembly > GrapeCity.ActiveReports.Web.Handlers Namespace : CompiledReportHandler Class

Glossary Item Box

By default the handler is registered with the *.ActiveReport file extension to pick up any request for an ActiveReport that has been compiled into a CLR/.NET assembly. The handler loads the ActiveReport from the specified assembly, runs and exports it to a specified format, defaulting to HTML.

Object Model

CompiledReportHandler Class

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class CompiledReportHandler 
   Inherits ArHandlerBase
C# 
public sealed class CompiledReportHandler : ArHandlerBase 

Remarks

Uses reflection to load the assembly and the specified report class; executes, and exports the report.

Assembly is to be specified as the first folder, and report class name as the subfolder. For example: http://localhost/MyAssemblyName/ActiveReport1.ActiveReport where MyAssemblyName.dll is the actual assembly filename, and ActiveReport1 the report class name. The special folder name indicating the assembly is evaluated from right to left, so if there are multiple folder levels, the folder name directly preceding the file name is always the assembly name.

For example, this would allow the following URL to be used: http://localhost/AnyFolder/AnySubFolder/MyAssemblyName/ActiveReport1.ActiveReport

You may also set any parameters you've added to the report's Parameters collection via the DataSource icon in the URL.  For example:

http://localhost/AnyFolder/AnySubFolder/MyAssemblyName/ActiveReport1.ActiveReport?Country=USA

To use this handler you must enter the following into your web.config file (making sure to use the correct Version):

<httpHandlers>           
<add verb="*" path="*.ActiveReport" type="GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler, GrapeCity.ActiveReports.Web.v8" />           
</httpHandlers>

Inheritance Hierarchy

System.Object
   GrapeCity.ActiveReports.Web.Handlers.ArHandlerBase
      GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also