lotus notes如何批量输出附件

lotus notes如何批量输出附件,最好能够远程一下,谢谢。

参与13

4同行回答

yuxiaoxuyuxiaoxu软件开发工程师上海理想
上面有点复杂,不需要指定富文本域。Dim session As New NotesSessionDim doc As NotesDocument....Dim AttachmentNames As VariantAttachmentNames =Evaluate({@AttachmentNames},doc)Forall AttachmentName in AttachmentNames    If AttachmentName\"\" Then...显示全部

上面有点复杂,不需要指定富文本域。

Dim session As New NotesSession

Dim doc As NotesDocument

....

Dim AttachmentNames As Variant

AttachmentNames =Evaluate({@AttachmentNames},doc)

Forall AttachmentName in AttachmentNames

    If AttachmentName<>\"\" Then
          Dim object As NotesEmbeddedObject

          Set object=doc.GetAttachment(AttachmentName)

          If Not object Is Nothing Then

                  Call object.ExtractFile(解压文件路径,如果考虑不同文档存在同名文件,需要考虑规则)

          End If

    End If

End Forall

收起
软件开发 · 2016-02-04
浏览1917
szkenszkenszkenszken其它contempo
http://www.ibm.com/developerworks/cn/lotus/notes-attachment-export/显示全部
互联网服务 · 2016-03-18
浏览1506
deng5538724deng5538724软件开发工程师Vtech
多看看帮助, 帮助上写的例子是这样的, 参考一下。 Dim doc As NotesDocumentDim rtitem As Variant\'...set value of doc...Set rtitem = doc.GetFirstItem( \"Body\" )If ( rtitem.Type = RICHTEXT ) Then  Forall o In rtitem.EmbeddedObjects    I...显示全部

多看看帮助, 帮助上写的例子是这样的, 参考一下。

Dim doc As NotesDocument

Dim rtitem As Variant

\'...set value of doc...

Set rtitem = doc.GetFirstItem( \"Body\" )

If ( rtitem.Type = RICHTEXT ) Then  

Forall o In rtitem.EmbeddedObjects

   If ( o.Type = EMBED_ATTACHMENT ) Then      

Call o.ExtractFile( \"c:\samples\\" & o.Source )

     Call o.Remove      Call doc.Save( False, True )   

End If  

End

Forall

End If

收起
互联网服务 · 2016-02-04
浏览1470
deng5538724deng5538724软件开发工程师Vtech
                  Set rtitem =doc.GetFirstItem(AttFields(af))              If Not rtitem Is Nothing Then            ...显示全部

                  Set rtitem =doc.GetFirstItem(AttFields(af))

              If Not rtitem Is Nothing Then

               If ( rtitem.Type = RICHTEXT ) Then

                          If Not Isempty(rtitem.EmbeddedObjects) Then

                 Forall o In rtitem.EmbeddedObjects

                                                    Call o.ExtractFile( \"d:\vttdmsatt\\" & o.name)                                                                                                       End Forall

                End If       

              End If

收起
互联网服务 · 2016-02-04
浏览1435

提问者

hupei
软件开发工程师arch

相关问题

相关资料

问题状态

  • 发布时间:2016-02-04
  • 关注会员:4 人
  • 问题浏览:4643
  • 最近回答:2016-03-18
  • X社区推广