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