Click here to Skip to main content
15,747,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am generating a word document where i want to insert a bookmark at the description and add Hyperlink at the heading for that description.
Here is the sample code
               Text = Dset.Tables(0).Rows(a)(1).ToString

               'Dim oRange As Object = oword.Selection.Range
               Write_Cache(oword, WdColor.wdColorOrange, Text)

The above code is for heading here i need Hyperlink, The text should become hyperlink

                           Text = ds.Tables(0).Rows(m)(1).ToString() & ": (Jobs Completed: " & IIf(closd.ToString.Trim.Length = 1, "0" & closd.ToString(), closd.ToString) & ", Jobs in Progress: " & IIf(open.ToString.Trim.Length = 1, "0" & open.ToString(), open.ToString) & ")" & vbCrLf
                           Write_Word(oword, WdColor.wdColorLightBlue, Text, False)

The above code is for description here i need the bookmark

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900