ComponentOne Reports for WinForms Designer Edition: ComponentOne Reports for WinForms > Working with C1PrintDocument > Anchors and Hyperlinks

Anchors and Hyperlinks

Reports for WinForms hyperlinks. Hyperlinks can be attached to render objects (RenderObject and derived classes), and paragraph objects (ParagraphObject and derived classes), and can be linked to:

      An anchor within the current document.

      An anchor within another C1PrintDocument.

      A location within the current document.

      An external file.

      A page within the current document.

      A user event.

Hyperlinks are supported by the preview controls included in C1.Win.C1Preview assembly (C1PreviewPane, C1PrintPreviewControl and C1PrintPreviewDialog). When a document with hyperlinks in it is previewed, and the mouse hovers over a hyperlink, the cursor changes to a hand. Clicking the hyperlink will, depending on the target of the link, either jump to another location within the document, open a different document and jump to a location in it, open an external file, or invoke the user event.

Note: The sample code fragments in the following topics assume that the "using C1.C1Preview" directive (in C# syntax; or an equivalent for other languages) has been inserted into the file, so that instead of fully qualified type names (such as C1.C1Preview.RenderText) we can use just the class name part (RenderText).


Adding a Hyperlink to an Anchor within the Same Document

Adding a Hyperlink to an Anchor in a Different C1PrintDocument

Adding a Hyperlink to a Location Within the Current Document

Adding a Hyperlink to an External File

Adding a Hyperlink to a Page in the Same Document

Adding a Hyperlink to a User Event

Link Target Classes Hierarchy


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.