Adding a Hyperlink to a Page in the Same Document
You can add hyperlinks to other pages in the same document without defining anchors, using the C1LinkTargetPage link target. The following page jumps are supported:
• To the first page of the document.
• To the last page of the document.
• To the previous page.
• To the next page.
• To a page specified by its absolute page number.
• To a page specified by an offset relative to the current page.
For instance, to make a link target jumping to the first page in the document, the following line of code may be used:
Dim linkTarget = New C1.C1Preview.C1LinkTargetPage(C1.C1Preview.PageJumpTypeEnum.First)
• C#
C1LinkTarget linkTarget = new C1LinkTargetPage(PageJumpTypeEnum.First);
Here, PageJumpTypeEnum specifies the type of the page jump (of course, for jumps requiring an absolute or a relative page number, you must use a variant of the constructor accepting that).
This feature allows you to provide simple means of navigating the document in the document itself. For example, you can add DVD player-like controls (go to first page, go to previous page, go to next page, go to last page) to the document footer.
|