Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
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
C#
ObjMobile.Format_TeamSummaryHeading_BUI(oword)
               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

C#
ObjMobile.Format_TeamSummaryHeading_BUI(oword)
                           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
Posted

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