Hi,
Trying to hyperlink to local drive jpg. Why does below not work?
Dim txtDB As New DBText()
Dim strTxt As String = sFname
txtDB.SetDatabaseDefaults()
Dim hyperlinkColl As HyperLinkCollection = txtDB.Hyperlinks
Dim hyperL As HyperLink = New HyperLink
Dim uri As New System.Uri(fname)
Dim convertUri = uri.AbsolutePath.ToString
hyperL.Description = "Photograph"
hyperL.Name = "Photograph"
hyperL.SubLocation = convertUri
hyperlinkColl.Add(hyperL)
txtDB.Position = pt.Position
txtDB.TextString = strTxt
txtDB.Justify = AttachmentPoint.BaseLeft
txtDB.AdjustAlignment(db)
btr.AppendEntity(txtDB)
tr.AddNewlyCreatedDBObject(txtDB, True)
tr.Commit()
Thanks.