HttpHandlers are included in the Professional edition of ActiveReports to allow you to quickly and easily display reports in the browser.
Follow these steps to configure the ActiveReports HTTP handlers in IIS so that you can link directly to reports in your Web applications. Once the handlers are configured, you can automatically run a report and view it in the browser from a URL.
If any part of your Web application is not supported in Integrated Mode, you can run it using the Classic .NET AppPool.
To run your Web application in the Classic .NET Application Pool
To configure ActiveReports HTTP handlers to enable report linking in your Web applications
Request path | Executable | Name |
---|---|---|
*.Web | aspnet_isapi.dll version to match your app pool | ActiveReports 14 Cache Item Script Mapping |
*.rpx | aspnet_isapi.dll version to match your app pool | ActiveReports 14 RPX Script Mapping |
*.rdlx | aspnet_isapi.dll version to match your app pool | ActiveReports 14 RDLX Script Mapping |
*.rdl | aspnet_isapi.dll version to match your app pool | ActiveReports 14 RDL Script Mapping |
To add handlers without configuring IIS 8 and IIS 10 using the Classic .NET AppPool
Paste inside the <system.web> tags. |
Copy Code
|
---|---|
<httpHandlers> <add verb="*" path="*.ActiveReport" type="GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.rpx" type="GrapeCity.ActiveReports.Web.Handlers.RpxHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.rdl" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.rdlx" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.ar14Web" type="GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> </httpHandlers> |
.Net 4.x
Paste inside the <system.webServer> tags. |
Copy Code
|
---|---|
<handlers> |
Note: If you have a 64 bit Web application, change the preCondition attribute on each line to classicMode,runtimeVersionv4.x,bitness64.
To configure ActiveReports HTTP handlers to enable report linking in your Web applications
Request path | Type | Name |
---|---|---|
*.Web | GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler | ActiveReports 14 cache item integrated handler mapping |
*.rpx | GrapeCity.ActiveReports.Web.Handlers.RpxHandler | ActiveReports 14 RPX integrated handler mapping |
*.rdlx | GrapeCity.ActiveReports.Web.Handlers.RdlxHandler | ActiveReports 14 RDLX integrated handler mapping |
*.rdl | GrapeCity.ActiveReports.Web.Handlers.RdlxHandler | ActiveReports 14 RDL integrated handler mapping |
To add handlers without configuring IIS 8 or IIS 10 using the DefaultAppPool
In your Web application, open the Web.config file and add code like the following between the <system.webServer> and </system.webServer> tags, changing the ActiveReports Version number on each line to match the version installed on your machine.
Paste inside the <system.webServer> tags. |
Copy Code
|
---|---|
<add verb="*" path="*.ActiveReport" type="GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR_CompiledReportHandler" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.ar14Web" type="GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR14_WebCacheAccessHandler" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.rpx" type="GrapeCity.ActiveReports.Web.Handlers.RpxHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR14_RpxHandler" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.rdl" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR14_RdlxHandler" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.rdlx" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web, Version=14.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR_RdlxHandler" resourceType="Unspecified" preCondition="integratedMode"/> |
Note: If you have a 64 bit Web application, change the preCondition attribute on each line to integratedMode,runtimeVersionv4.x,bitness64.