ActiveReports 6 Online Help
Add Report Links to Web Forms (Pro Edition)

Show AllShow All
Hide AllHide All

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).

To enable the HTTPHandlers

  1. In the Solution Explorer, double-click the Web.config file.
  2. In the XML view, add the following code to the Web.config file.

    HttpHandler Configuration XML

  3. Update the Version and PublicKeyToken values to reflect the current version of ActiveReports installed on your machine.
    Tip: You can find the Version and PublicKeyToken values in the Global Assembly Cache (GAC), C:\WINDOWS\ASSEMBLY.

To add a link to a Web Form that opens a report in PDF format

  1. In the HTML view of the Web Form (*.aspx), add a hyperlink like the following.

    Hyperlink HTML

  2. Press F5 to run the program.
  3. Click the link on the web form to view the report PDF.

To add a link that passes a parameter to a report and opens it in HTML format

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.

  1. In the HTML view of the Web Form, add a hyperlink like the following.

    Hyperlink HTML

  2. Press F5 to run the program.
  3. Click the link on the web form to show the report in its default HTML format.

See Also

Related Sections