ActiveReports 6 Online Help
Add Hyperlinks
Show AllShow All
Hide AllHide All

Using the Hyperlink property available on the following ActiveReports controls, you can add hyperlinks that connect to a Web page, open an e-mail, or jump to a bookmark.

To link to a Web page

  1. Click the control to select it.
  2. In the Properties window, set the HyperLink property to any valid URL.

To link to an e-mail address

  1. Click the control to select it.
  2. In the Properties window, set the HyperLink property to mailto: and any valid e-mail address.

To parse the URL out of a database field for a hyperlink

  1. Double-click the section where the control is located. This creates an event-handling method for the section's Format event.
  2. Add code to the Format event to
    • Parse the URL out of the HomePage field
    • Assign it to the HyperLink property of txtHomePage
    • Remove the URL markers from the text displayed in txtHomePage

The following example shows what the code for the method looks like.

To write the code in Visual Basic.NET

To write the code in C#

To create a hyperlink that jumps to a bookmark

  1. Double-click the section where the control is located. This creates an event-handling method for the section's Format event.
  2. Add code to the Format event to
    • Parse the URL out of the HomePage field
    • Assign it to the HyperLink property of txtHomePage
    • Remove the URL markers from the text displayed in txtHomePage

The following example shows what the code for the method looks like.

To write the code in Visual Basic.NET

To write the code in C#

To display the page number of the bookmark in the table of contents

To write the code in Visual Basic

To write the code in C#

See Also

Walkthroughs

Related Sections