码迷,mamicode.com
首页 > 其他好文 > 详细

Domino富文本域内附件大小的判断

时间:2014-11-13 10:50:23      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   ar   sp   for   div   on   log   

 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.Document
10     Call uidoc.Save()
11     
12     Set rtitem = doc.GetFirstItem("")
13     If rtitem Is Nothing Then
14     Else
15         If rtitem.Type = RICHTEXT Then
16             If Not Isempty(rtitem.EmbeddedObjects) Then
17                 Forall o In rtitem.EmbeddedObjects
18                     Set object = rtitem.GetEmbeddedObject(o.Name)
19                     sizeInBytes = sizeInBytes + object.FileSize
20                 End Forall
21                 Msgbox Cstr(sizeInBytes/1024)      
22             End If
23         End If
24         
25     End If

 

Domino富文本域内附件大小的判断

标签:style   blog   color   ar   sp   for   div   on   log   

原文地址:http://www.cnblogs.com/wearethinking/p/4094220.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!