To add hyperlinks to reports, you must first configure the ActiveReports HttpHandlers and save your report layouts to report XML (RPX) format.
For more information, see Configure HTTPHandlers (Pro Edition) and Save and Load Report Layout Files (RPX).
HttpHandler Configuration XML
XML code. Paste in the XML view of the Web.config file inside the system.web section. |
Copy Code |
---|---|
<httpHandlers> <!-- ********** ActiveReports HttpHandler Configuration ********** --> <add verb="*" path="*.rpx" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=6.0.865.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.ActiveReport" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=6.0.865.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> <add verb="*" path="*.ArCacheItem" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=6.0.865.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" /> </httpHandlers> |
Tip: You can find the Version and PublicKeyToken values in the Global Assembly Cache (GAC), C:\WINDOWS\ASSEMBLY. |
Hyperlink HTML
HTML code. Paste in the HTML view of the Web Form. |
Copy Code |
---|---|
<a href="rptYourReportName.rpx?OutputFormat=pdf">Open the report in PDF format.</a> |
In order to pass a parameter to a report, you must first Add Parameters to the report. In this case, we are using a report with a Country parameter.
Caution: Set your report's ShowParameterUI property to False to prevent the server from hanging while it tries to show the parameter dialog box. Tip: Remember to save your report layout to RPX format again after you make any changes. |
Hyperlink HTML
HTML code. Paste in the HTML view of the Web Form. |
Copy Code |
---|---|
<a href="rptYourReportName.rpx?Country=USA">Customer Phone List for USA</a> |