嗨,在将超链接添加到数据库文本之前,尝试完成将数据库文本添加到数据库。 Dim txt db As New db text()。
Dim strTxt As String = SF name 。
txtDB,setdatabasefaults()。
。
txtDB,位置=点,位置。
txtDB,TextString = strTxt。
txtDB,Justify = AttachmentPoint,BaseLeft。
txtDB,AdjustAlignment(db)。
。
btr,AppendEntity(txtDB)。
trAddNewlyCreatedDBObject(txtDB,True)。
。
Dim hyperlink coll As hyperlink collection = txt db,超链接。
Dim hyperL As HyperLink = New HyperLink 。
Dim uri作为新系统,Uri(fname)。
Dim convertUri = uri,AbsolutePath.ToString。
。
hyperL,Description = "Photograph"。
hyperL,Name = "Photograph"。
hyperL,SubLocation = convertUri。
hyperlinkColl,添加(hyperL)。
。
trCommit()。