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:
For instance, to make a link target jumping to the first page in the document, the following line of code may be used:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim linkTarget = New C1.C1Preview.C1LinkTargetPage(C1.C1Preview.PageJumpTypeEnum.First) |
To write code in C#
C# |
Copy Code
|
---|---|
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.