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 7.x 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 |
---|---|---|
*.AR10 | aspnet_isapi.dll version to match your app pool | ActiveReports 10 Script Mapping |
*.AR10Web | aspnet_isapi.dll version to match your app pool | ActiveReports 10 Cache Item Script Mapping |
*.rpx | aspnet_isapi.dll version to match your app pool | ActiveReports 10 RPX Script Mapping |
*.rdlx | aspnet_isapi.dll version to match your app pool | ActiveReports 10 RDLX Script Mapping |
*.rdl | aspnet_isapi.dll version to match your app pool | ActiveReports 10 RDL Script Mapping |
*.ActiveReport | aspnet_isapi.dll version to match your app pool | ActiveReports 10 Script Mapping |
To add handlers without configuring IIS 7 or IIS 8 using the Classic .NET AppPool
Paste inside the <system.web> tags. |
Copy Code
|
---|---|
<httpHandlers> <add verb="*" path="*.AR10" type="GrapeCity.ActiveReports.Web.Handlers.ReportBinariesStreamer, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.ActiveReport" type="GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.rpx" type="GrapeCity.ActiveReports.Web.Handlers.RpxHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.rdl" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.rdlx" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.AR10Web" type="GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> </httpHandlers> |
.Net 2.0
Paste inside the <system.webServer> tags. |
Copy Code
|
---|---|
<handlers> <add name="AR10Rpx" path="*.rpx" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32"/> <add name="AR10Rdlx" path="*.rdlx" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32"/> <add name="AR10" path="*.AR10" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32"/> <add name="AR10Web" path="*.AR10Web" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32"/> <add name="AR10Rdl" path="*.rdl" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32"/> <add name="ActiveReport" path="*.ActiveReport" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32"/> </handlers> |
.Net 4.0
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,runtimeVersionv2.0,bitness64, or in ASP.NET 4, change it to classicMode,runtimeVersion4.0,bitness64.
To configure ActiveReports HTTP handlers to enable report linking in your Web applications
Request path | Type | Name |
---|---|---|
*.AR10 | GrapeCity.ActiveReports.Web.Handlers.ReportBinariesStreamer | ActiveReports 10 integrated handler mapping |
*.AR10Web | GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler | ActiveReports 10 cache item integrated handler mapping |
*.rpx | GrapeCity.ActiveReports.Web.Handlers.RpxHandler | ActiveReports 10 RPX integrated handler mapping |
*.rdlx | GrapeCity.ActiveReports.Web.Handlers.RdlxHandler | ActiveReports 10 RDLX integrated handler mapping |
*.rdl | GrapeCity.ActiveReports.Web.Handlers.RdlxHandler | ActiveReports 10 RDL integrated handler mapping |
*.ActiveReport | GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler | ActiveReports 10 integrated handler mapping |
To add handlers without configuring IIS 7 or IIS 8 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="*.ar10" type="GrapeCity.ActiveReports.Web.Handlers.ReportBinariesStreamer, GrapeCity.ActiveReports.Web.v10, Version=10.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR10_ReportBinariesStreamer" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.ar10Web" type="GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler, GrapeCity.ActiveReports.Web.v10, Version=10.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR10_WebCacheAccessHandler" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.ActiveReport" type="GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler, GrapeCity.ActiveReports.Web.v10, Version=10.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR10_CompiledReportHandler" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.rpx" type="GrapeCity.ActiveReports.Web.Handlers.RpxHandler, GrapeCity.ActiveReports.Web.v10, Version=10.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR10_RpxHandler" resourceType="Unspecified" preCondition="integratedMode"/> <add verb="*" path="*.rdl,*.rdlx" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web.v10, Version=10.x.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR10_RdlxHandler" resourceType="Unspecified" preCondition="integratedMode"/> |
Note: If you have a 64 bit Web application, change the preCondition attribute on each line to integratedMode,runtimeVersionv2.0,bitness64, or in ASP.NET 4, change it to integratedMode,runtimeVersion4.0,bitness64.