怎么在C/S中用LotusScript向Richtext域中插入数据库资源上的图片
发布时间:2010-06-13 13:46:30 文章来源:www.iduyao.cn 采编人员:星星草
如何在C/S中用LotusScript向Richtext域中插入数据库资源上的图片?
如何在C/S中用LotusScript向Richtext域中插入数据库资源上的图片?
用Import能导入外部文件,但没有办法导入数据库资源里的图片。
------解决方案--------------------
Sub Initialize
On Error Goto errhandle
Dim ss As New NotesSession
Dim db As NotesDatabase
Dim nc As NotesNoteCollection
Dim noteId As String
Dim docImage As NotesDocument
Dim item As NotesItem
Dim img As String
Dim context As NotesDocument
Dim imgitem As NotesItem
Dim count As Integer
count=0
Set context=ss.DocumentContext
Set imgitem=context.GetFirstItem( "ImageList ")
Set db=ss.CurrentDatabase
Set nc=db.CreateNoteCollection(False)
Call nc.SelectAllFormatElements(False)
nc.SelectImageResources = True
Call nc.BuildCollection
noteId = nc.GetFirstNoteId
Do While Not noteId = " "
count=count+1
Set docImage = db.GetDocumentByID(noteId)
img= docImage.GetItemValue( "$TITLE ")(0)
Call imgitem.AppendToTextList( "图片 "+Cstr(count)+ "| "+img)
noteId = nc.GetNextNoteId(noteId)
Loop
Exit Sub
errhandle:
Print Error$
Print Erl()
End Sub
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
问各位初学lotus notes开发看什么书
问各位初学lotus notes开发看什么书,如果有共享的话就谢谢大家了
------解决方案-----------...
-
简单的语法,请大侠看看!!
我是刚入门的菜鸟,我想添加我在视图中选择多个IP地址,并把它们放到address这个域当中,如果我用@PickList这个...
-
如何屏蔽或隐藏notes文件菜单中的引出按钮?
出于安全考虑,要隐藏引出按钮?
------解决方案--------------------
CS的话可以修...
-
c/s下如何封CTRL+C CTRL+V?
谢谢!
------解决方案--------------------
给数据库acl加权限,禁止复制...
-
domino 可以改变域的容量吗?
domino 可以改变域的容量吗?32kb改成更大一点的
------解决方案--------------------
普通域大小不...
-
Domino用户重复的问题 请大侠们指教~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
各位好 目前遇到如下问题
A服务器是主...
-
用js 怎样截取字符串?
var str="C:\Documents and Settings\dell\桌面\guanxi4.bmp"
我只需要 guanxi4.bmp 用js 怎样...
-
domino 自动编号
设计重1开始编号,依次不重复的,有好的建议吗?
------解决方案--------------------
再看以前发的一个帖子,对你有...
-
请高手进来看看:表单提交报错。
表单提交的时候报错:HTTP Web Server: Item value exceeds maximum allowable size. [/oadata/ccc....
-
Lotus Notes 8.5 发邮件时错误提示 failed to authenticate
如标题。
只有一个账户,点发邮件的时候有这样的错误提示,其他账户都正...