View previous topic :: View next topic |
Author |
Message |
emeshuris
Joined: 26 Feb 2007 Posts: 1
|
Posted: Mon Feb 26, 2007 7:25 pm Post subject: Bookmarks |
|
|
Hi,
I am trying to set a bookmark using migra doc lite.
The code below does not set a bookmark and it doesnt add a hyperlink field.
I dont need a hyperlink field, but it has a bookmark property so i thought it might do the trick.
Please review the code below, thanks in advance.
-Edward
Code: | Private Function SetDocument_Properties(ByVal iInvNum As Integer) As Document
SetDocument_Properties = New Document
Dim p As Paragraph
With SetDocument_Properties
With .Info
.Title = "Packing Slips"
.Subject = "Packing Slips"
.Author = "SPI"
End With
.AddSection()
With .LastSection
p = .AddParagraph
With p
.AddBookmark(iInvNum.ToString)
.AddText(iInvNum.ToString)
.AddHyperlink(iInvNum.ToString, HyperlinkType.Bookmark)
End With
End With
End With
End Function
|
|
|
Back to top |
|
|
Stefan Lange
Joined: 12 Oct 2006 Posts: 47 Location: Cologne, Germany
|
Posted: Thu Mar 08, 2007 11:48 pm Post subject: |
|
|
You use hyperlink not correctly.
See in sample HelloMigraDoc how the table of content is created. This illustrates the connection between bookmarks and hyperlinks and how to use them. |
|
Back to top |
|
|
|