首页 > 代码库 > Domino富文本域内附件大小的判断
Domino富文本域内附件大小的判断
1 Dim wks As New NotesUIWorkspace 2 Dim uidoc As NotesUIDocument 3 Dim doc As NotesDocument 4 Dim rtitem As Variant 5 Dim object As NotesEmbeddedObject 6 Dim sizeInBytes As Long 7 8 Set uidoc = wks.CurrentDocument 9 Set doc = uidoc.Document10 Call uidoc.Save()11 12 Set rtitem = doc.GetFirstItem("")13 If rtitem Is Nothing Then14 Else15 If rtitem.Type = RICHTEXT Then16 If Not Isempty(rtitem.EmbeddedObjects) Then17 Forall o In rtitem.EmbeddedObjects18 Set object = rtitem.GetEmbeddedObject(o.Name)19 sizeInBytes = sizeInBytes + object.FileSize20 End Forall21 Msgbox Cstr(sizeInBytes/1024) 22 End If23 End If24 25 End If
Domino富文本域内附件大小的判断
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。