VBS 对IBM Notes的常规操作

VBA中调用Notes 正常情况下,我们都是在Notes中调用office的组件来完成相关功能。这次在一个论坛里看到还有个需求是要在Word中直接调用Notes中的相关操作完成。觉得蛮好奇,回去试了一下,还真的可以。示例如下:Sub test() test Macro 成功调用 宏在 2009-5-25 由  创建Dim ss As VariantDim db As Vari 阅读详情

之前在这个帖子中讨论了使用VBA发送Lotus Notes邮件,那个帖子中还有些问题一直没有解决,例如签名。另外之前自己也认为不能使用Lotus Notes的UI操作,实际上是错的。
这里开一个新贴提供一些关于使用VBA操作Notes的例子,主要涉及Notes的邮件功能。使用的Notes版本是R9。如有不足的地方,希望大家补充。

 

1. 获取当前用户名
Sub GetUserName()
    Dim aNotes
   
    ' 创建NoteSession对象
    Set aNotes = CreateObject("Notes.NotesSession")
   
    ' 获取用户名
    MsgBox aNotes.UserName
   
    Set aNotes = Nothing
End Sub

2. 访问数据库
Sub AccessDataBase()
    Dim aNotes
    Dim aDataBase
    Dim strTemp As String
   
    Set aNotes = CreateObject("Notes.NotesSession")
   
    ' 获取当前数据库
    Set aDataBase = aNotes.CURRENTDATABASE
   
    ' 获取服务器上指定数据库
    'Set aDataBase = aNotes.GetDatabase("server/subfolder", "mail/yourname")
   
    ' 获取本地联系人数据库
    'Set aDataBase = aNotes.GetDatabase("", "names")
   
    ' 获取本地数据库
    'Set aDataBase = aNotes.GetDataBase("", "c:\work\temp.nsf")
   
    strTemp = "共有邮件:" & aDataBase.AllDocuments.Count
    strTemp = strTemp & vbCrLf & "数据库标题:" & aDataBase.Title
    strTemp = strTemp & vbCrLf & "数据库文件:" & aDataBase.Filename
    strTemp = strTemp & vbCrLf & "数据库" & IIf(aDataBase.IsOpen, "已打开", "未打开")
   
    MsgBox strTemp
    Set aNotes = Nothing
    Set aDataBase = Nothing
    Set aDocument = Nothing
End Sub

3. 判断数据库是否打开
Sub OpenDataBase()
    Dim aNotes
    Dim aDataBase
    Dim strTemp As String
   
    Set aNotes = CreateObject("Notes.NotesSession")
   
    Set aDataBase = aNotes.GetDataBase("", "")
    If aDataBase.IsOpen Then
        MsgBox "Is Open"
    Else
        MsgBox "Not Open"
    End If
    aDataBase.Open "", "c:\work\temp.nsf"
    If aDataBase.IsOpen Then
        MsgBox aDataBase.Title & "已打开", , aDataBase.Filename
    Else
        MsgBox "未打开", , aDataBase.Filename
    End If
   
    Set aNotes = Nothing
    Set aDataBase = Nothing
End Sub
这种打开方式只是用来提供后续操作,并不是表示在Notes窗口中打开该数据库。


4. 使用UIWorkspace对象打开指定数据库
Sub AccessUI()
    Dim aNotesUI
    Set aNotesUI = CreateObject("Notes.NotesUIWorkspace")
    Call aNotesUI.OpenDataBase("", "c:\work\temp.nsf")
   
    Set aNotesUI = Nothing
End Sub
使用UIWorkspace对象则可以在Notes窗口中打开指定数据库。


5. 根据模板创建本地邮件数据库
Sub CreateMailDatabase()
    Dim aNotes
    Dim aDataBase
    Dim dbTemp
    Dim strTemp As String
   
    Set aNotes = CreateObject("Notes.NotesSession")
    ' 指定模板文件
    Set dbTemp = aNotes.GetDataBase("", "mail6.ntf")
    ' 第一个参数指定服务器名称,如果为空表示生成本地数据库
    ' 第二个参数表示数据库文件名称
    ' 第三个参数表示是否继承未来的设计变化
    Set aDataBase = dbTemp.CREATEFROMTEMPLATE("", "TestDB", True)
   
    aDataBase.Title = "Just Test"
   
    Set aNotes = Nothing
    Set dbTemp = Nothing
    Set aDataBase = Nothing
End Sub
这样创建的数据库并没有添加到Notes的Workspace中,但在C:\Program Files\Lotus\Notes\Data目录下生成TestDB.nsf数据库文件。

6. 连接UIDocument和Document
Sub ConnectUIandDoc()
  Dim workspace As Object
  Dim uidoc As Object
  Dim doc As Object
  Dim db As Object
  Set workspace = CreateObject("Notes.NotesUIWorkspace")
  ' 设置uidoc为NotesUIDocument对象
  Set uidoc = workspace.CURRENTDOCUMENT
  ' 将NotesUIDocument对象赋给NotesDocument对象
  Set doc = uidoc.DOCUMENT
  Set db = doc.PARENTDATABASE
  MsgBox "Parent database: " & db.Title
  Set db = Nothing
  Set doc = Nothing
  Set uidoc = Nothing
  Set workspace = Nothing
End Sub

7. 列出当前数据库中所有的文档(默认打开邮件数据库,列出所有邮件)。
Sub ListAllDocument()
  Dim aNotes
  Dim aDataBase
  Dim aDC
  Dim aDoc
  Dim i As Integer
  
  Set aNotes = CreateObject("Notes.NotesSession")
  Set aDataBase = aNotes.CURRENTDATABASE
  Set aDC = aDataBase.AllDocuments
  Debug.Print aDC.Count                                                ' 所有文档总数
  Set aDoc = aDC.GETFIRSTDOCUMENT                                ' 获取第一个邮件
  i = 1
  While Not (aDoc Is Nothing)
     Cells(i, 1) = aDoc.GETFIRSTITEM("From").text                ' 发件人
     Cells(i, 2) = aDoc.GETFIRSTITEM("Subject").text                ' 标题
     i = i + 1
    Set aDoc = aDC.GetNextDocument(aDoc)                        ' 获取下一个邮件
  Wend
  Set aNotes = Nothing
  Set aDataBase = Nothing
  Set aDC = Nothing
  Set aDoc = Nothing
End Sub

8. 列出收件箱中所有的邮件
Sub ListInboxDocument()
  Dim aNotes
  Dim aDataBase
  Dim aView
  Dim aDoc
  Dim i As Integer
  
  Set aNotes = CreateObject("Notes.NotesSession")
  Set aDataBase = aNotes.CURRENTDATABASE
  Set aView = aDataBase.getview("($Inbox)")                        ' 获取收件箱
  Debug.Print aView.ALLENTRIES.Count                                ' 所有文档总数
  Set aDoc = aView.GETFIRSTDOCUMENT
  i = 1
  While Not (aDoc Is Nothing)
     Cells(i, 1) = aDoc.GETFIRSTITEM("From").text
     Cells(i, 2) = aDoc.GETFIRSTITEM("Subject").text
     i = i + 1
    Set aDoc = aView.GetNextDocument(aDoc)
  Wend
  Set aNotes = Nothing
  Set aDataBase = Nothing
  Set aView = Nothing
  Set aDoc = Nothing
End Sub
可以使用Set aView = aDataBase.getview("($Sent)")获得发件箱。

9. 列出当前数据库中所有的视图
Sub GetAllViews()
    Dim aNotes
    Dim aDataBase
    Dim aView
    Dim j As Integer
   
    Set aNotes = CreateObject("Notes.NotesSession")
    Set aDataBase = aNotes.CURRENTDATABASE
    j = 1
    For Each aView In aDataBase.views
        Cells(j, 1) = aView.Name
        Cells(j, 2) = aView.IsFolder
        j = j + 1
    Next
    Set aNotes = Nothing
    Set aDataBase = Nothing
    Set aView = Nothing
End Sub
如果是邮件数据库可以列出诸如收件箱、发件箱、草稿箱和垃圾箱等等视图的名称。

10. 列出指定文档的所有Item。
Sub ListDocItems()
    Dim aNotes
    Dim aDataBase
    Dim aDocument
    Dim aView
    Dim aItem
    Dim i
   
    Set aNotes = CreateObject("Notes.NotesSession")
    Set aDataBase = aNotes.CURRENTDATABASE
    Set aView = aDataBase.getview("($Inbox)")
    If (aView Is Nothing) Then
        MsgBox "Inbox view don't exist!"
    Else
        Set aDocument = aView.GETFIRSTDOCUMENT
        i = 1
        For Each aItem In aDocument.Items
            Cells(i, 1) = aItem.Type
            Cells(i, 2) = aItem.Name
            Cells(i, 3) = aItem.text
            i = i + 1
        Next
    End If
    Set aNotes = Nothing
    Set aDataBase = Nothing
    Set aView = Nothing
    Set aDocument = Nothing
    Set aItem = Nothing
End Sub
这些Item构成一个文档或者说一个邮件,这些Item的内容也可以使用类似aDoc.GETFIRSTITEM("From").Text的方法来获取。

11. 列出邮件正文中的所有嵌入对象,包括Excel工作表、附件等。(正文中嵌入的图片不知道怎么获得)
Sub ListItemofBody()
    Dim aNotes
    Dim aDataBase
    Dim aDocument
    Dim aView
    Dim aItem
    Dim oEmb
   
    Set aNotes = CreateObject("Notes.NotesSession")
    Set aDataBase = aNotes.CURRENTDATABASE
    Set aView = aDataBase.getview("($Inbox)")
    If (aView Is Nothing) Then
        MsgBox "Inbox view don't exist!"
    Else
        ' 本例中只列出第一个邮件的嵌入对象
        Set aDocument = aView.GETFIRSTDOCUMENT
        Set rtItem = aDocument.GETFIRSTITEM("Body")
        Debug.Print rtItem.text
        If (rtItem.Type = 1) Then
            For Each oEmb In rtItem.EmbeddedObjects
                Debug.Print oEmb.Type & " " & oEmb.Name
            Next
        End If
    End If
    Set aNotes = Nothing
    Set aDataBase = Nothing
    Set aView = Nothing
    Set aDocument = Nothing
    Set aItem = Nothing
End Sub
其中嵌入对象的类型包括:
EMBED_ATTACHMENT (1454)
EMBED_OBJECT (1453)
EMBED_OBJECTLINK (1452)

12. 搜索指定条件邮件
Sub SearchDocument()
  Dim aNotes
  Dim aDatabase
  Dim aDC
  Dim aDoc
  Dim i As Integer
  Dim dt
  
  Set aNotes = CreateObject("Notes.NotesSession")
  Set aDatabase = aNotes.CURRENTDATABASE
  ' 指定日期
  Set dt = aNotes.CREATEDATETIME("03/03/10")
  
  Set aDC = aDatabase.Search("@Contains(Subject;""FW"")", dt, 0)
  'Set aDC = aDatabase.Search("@Contains(Subject;""FW"")", Nothing, 0)
  Set aDoc = aDC.GETFIRSTDOCUMENT()
  i = 1
  While Not (aDoc Is Nothing)
    Cells(i, 1) = aDoc.GETFIRSTITEM("From").text
    Cells(i, 2) = aDoc.GETFIRSTITEM("Subject").text
    i = i + 1
    Set aDoc = aDC.GetNextDocument(aDoc)
  Wend
  Set aNotes = Nothing
  Set aDatabase = Nothing
  Set aDC = Nothing
  Set aDoc = Nothing
  Set dt = Nothing
End Sub
aDatabase.Search("@Contains(Subject;""FW"")", dt, 0)表示搜索数据库中从dt所表示的日期开始的主题包含“FW"字符串的邮件。
语法:
Set notesDocumentCollection = notesDatabase.Search( formula$, notesDateTime, maxDocs% )
参数formula$:使用@function公式定义搜索条件;
参数notesDateTime:开始时间,如果设置Nothing则表示没有开始时间。
参数mxDocs%:返回的最大邮件数。设为0时表示匹配所有邮件。


13. 下载附件
Sub GetAttachement()
    Dim aNotes
    Dim aDataBase
    Dim aDocument
    Dim aView
    Dim rtItem
    Dim oEmb
   
    Set aNotes = CreateObject("Notes.NotesSession")
    Set aDataBase = aNotes.CURRENTDATABASE
    Set aView = aDataBase.getview("($Inbox)")
    If (aView Is Nothing) Then
        MsgBox "Inbox view don't exist!"
    Else
        ' 本例只是处理第一个邮件
        Set aDocument = aView.GETFIRSTDOCUMENT
        Debug.Print aDocument.GETFIRSTITEM("From").text                     ' 发送者
        Debug.Print aDocument.GETFIRSTITEM("Subject").text                  ' 主题
        Debug.Print aDocument.GETFIRSTITEM("posteddate").text               ' 发送时间
        Set rtItem = aDocument.GETFIRSTITEM("Body")
        If (rtItem.Type = 1) Then
            For Each oEmb In rtItem.EmbeddedObjects
                If (oEmb.Type = 1454) Then                                ' 附件类型
                    Call oEmb.ExtractFile("c:\" & oEmb.Source)
                End If
            Next
        End If
    End If
    Set aNotes = Nothing
    Set aDataBase = Nothing
    Set aView = Nothing
    Set aDocument = Nothing
End Sub

14. 设置签名档
Sub SetSignature()
    Dim aNotes
    Dim aDataBase
    Dim aProf
   
    Set aNotes = CreateObject("Notes.NotesSession")
    Set aDataBase = aNotes.CURRENTDATABASE
    Set aProf = aDataBase.GetProfileDocument("CalendarProfile")
    Call aProf.ReplaceItemValue("EnableSignature", "1")
    'Call aProf.ReplaceItemValue("SignatureOption", "1")
    'Call aProf.ReplaceItemValue("Signature_1", "In god we trust")
    Call aProf.ReplaceItemValue("SignatureOption", "2")
    Call aProf.ReplaceItemValue("Signature_2", "C:\test.jpg")
    Call aProf.ComputeWithForm(True, False)
    Call aProf.Save(True, False)
    Set aNotes = Nothing
    Set aDataBase = Nothing
    Set aProf = Nothing
End Sub
语句aProf.ReplaceItemValue("EnableSignature", "1")表示勾选“Automatically append a signature to the bottom of my outgoing mail messages"。"0"表示不勾选。
语句Call aProf.ReplaceItemValue("SignatureOption", "1")表示勾选“Text”。
语句Call aProf.ReplaceItemValue("Signature_1", "In god we trust")表示设置文本签名档内容。
语句Call aProf.ReplaceItemValue("SignatureOption", "2")表示勾选“HTML or Image File”。
语句Call aProf.ReplaceItemValue("Signature_2", "C:\test.jpg")设置HTML或Image文件路径名,也可以使用文本文件。


15. 发送邮件时添加签名档
Sub SendEmailwithSignature()
    Dim aNotes
    Dim aDatabase
    Dim aDocument
    Dim strSign As String
   
    Set aNotes = CreateObject("Notes.NotesSession")
    Set aDatabase = aNotes.CURRENTDATABASE
    strSign = aDatabase.GetProfileDocument("CalendarProfile") _
                                            .GETITEMVALUE("Signature")(0)
                                            
    Set aDocument = aDatabase.CREATEDOCUMENT
    aDocument.Subject = "test"
    aDocument.SendTo = "test@xxx.com"
    aDocument.Form = "Memo"
    aDocument.Body = "This is a test to using Signature." & VbCrLf & VbCrLf & strSign
    aDocument.SAVEMESSAGEONSEND = True
    aDocument.PostedDate = Now
    ' 发送邮件
    'Call aDocument.SEND(False)
    ' 保存邮件
    Call aDocument.Save(True, False)
   
    Set aNotes = Nothing
    Set aDatabase = Nothing
    Set aDocument = Nothing
End Sub
即使已经设置了签名档,使用NotesSession发送邮件时,邮件中仍然没有包括签名档,需要读取签名档内容并添加到正文中。这里只是读取文本内容的签名档。


15. 发送带附件的邮件
Sub SendEmailbyNotesWithAttachement()
    Dim nNotes As Object
    Dim nDatabase As Object
    Dim nDocument As Object
    Dim nRTItem As Object
    Dim aSend As Variant
   
    On Error GoTo errHandle
    ' 使用数组表示多个接收者
    aSend = VBA.Array("test1@xxx.com", "test2@xxx.com")
    Set nNotes = CreateObject("Notes.NotesSession")
    Set nDatabase = nNotes.CURRENTDATABASE
    Set nDocument = nDatabase.CREATEDOCUMENT
    nDocument.Subject = "Test"
    nDocument.SendTo = aSend
    nDocument.Form = "Memo"
    nDocument.SAVEMESSAGEONSEND = True
    nDocument.PostedDate = Now
    Set nRTItem = nDocument.CREATERICHTEXTITEM("Body")
    Call nRTItem.AddNewLine(2)
    Call nRTItem.AppendText("This is a test mail with a attachement")
    Call nRTItem.AddNewLine(1)
    Call nRTItem.EMBEDOBJECT(1454, "", "c:\test.txt")
    Call nDocument.SEND(False)
    Set nNotes = Nothing
    Set nDatabase = Nothing
    Set nDocument = Nothing
    Set nRTItem = Nothing
    Exit Sub
errHandle:
    Set nNotes = Nothing
    Set nDatabase = Nothing
    Set nDocument = Nothing
    Set nRTItem = Nothing
    MsgBox Err.Description
End Sub

如果在Set nRTItem语句前设置nDocument.Body属性,代码将出错并提示“Rich text item body already exists”错误。下面的代码将出错。
    Set nDocument = nDatabase.CREATEDOCUMENT
    nDocument.Subject = "Test"
    nDocument.SendTo = aSend
    nDocument.Form = "Memo"
    nDocument.SAVEMESSAGEONSEND = True
    nDocument.PostedDate = Now
    nDocument.body = "This is a test using body"
    Set nRTItem = nDocument.CREATERICHTEXTITEM("Body")

这时可以修改Set nRTItem语句来创建另外一个名称的RichText Item。如下:
    Set nDocument = nDatabase.CREATEDOCUMENT
    nDocument.Subject = "Test"
    nDocument.SendTo = aSend
    nDocument.Form = "Memo"
    nDocument.SAVEMESSAGEONSEND = True
    nDocument.PostedDate = Now
    nDocument.body = "This is a test using body"
    Set nRTItem = nDocument.CREATERICHTEXTITEM("Body1")
但是这样的结果是RichText Item中AppendText的内容不能显示,仅能显示附件。

也可以将Set nRTItem语句移动到前面,如下:
    Set nDocument = nDatabase.CREATEDOCUMENT
    Set nRTItem = nDocument.CREATERICHTEXTITEM("Body")
    nDocument.Subject = "Test"
    nDocument.SendTo = aSend
    nDocument.Form = "Memo"
    nDocument.SAVEMESSAGEONSEND = True
    nDocument.PostedDate = Now
    nDocument.body = "This is a test using body"
代码仍能运行,同上例一样RichText Item中AppendText的内容不能显示,仅能显示附件。
这个方法有一个问题是正文中有两个相同名称的Item,一个是Text类型的Item,另外一个是RichText类型的Item。而Lotus的程序也是很奇怪,有GetFirstItem但没有GetNextItem。使用程序方法的话,程序限制只能获取第一个Item的内容,也就是Text类型的Item。要想获取第2个Item的内容,需要先删除第一个Item,然后保存Document,然后再使用GetFirstItem方法获取第2个 Item(现在是第1个了)的附件。所以建议不要使用相同名称的Item。

17. 选择工作表范围发送邮件
Sub SendRange()
    Dim nNotes As Object
    Dim nDatabase As Object
    Dim nDocument As Object
    Dim aSend As Variant
    Dim rngSel As Range
    Dim doClip As DataObject
   
    Set rngSel = Application.InputBox("请选择工作表范围:", "选择", , , , , , 8)
    If rngSel Is Nothing Then Exit Sub
    ' 复制单元格内容到剪贴板
    rngSel.Copy
    Set doClip = New DataObject
    doClip.GetFromClipboard
    Application.CutCopyMode = False
   
    On Error GoTo errHandle
    aSend = VBA.Array("test1@xxx.com", "test2@xxx.com")
    Set nNotes = CreateObject("Notes.NotesSession")
    Set nDatabase = nNotes.CURRENTDATABASE
    Set nDocument = nDatabase.CREATEDOCUMENT
    nDocument.Subject = "Test"
    nDocument.SendTo = aSend
    nDocument.Form = "Memo"
    nDocument.body = "This is test which include a range selection from Excel" & vbCrLf & doClip.GetText
    nDocument.SAVEMESSAGEONSEND = True
    nDocument.PostedDate = Now
   
    Call nDocument.SEND(False)
    Set nNotes = Nothing
    Set nDatabase = Nothing
    Set nDocument = Nothing
    Set dtClip = Nothing
    Exit Sub
errHandle:
    Set nNotes = Nothing
    Set nDatabase = Nothing
    Set nDocument = Nothing
    Set dtClip = Nothing
    MsgBox Err.Description
End Sub

18. 将选择内容以图片方式发送
Sub SendFormatData()
    Dim aNotesUI
    Dim aDocUI
    Dim strTo As String
    Dim strCC As String
    Dim strSub As String
    Dim strBody As String
    Dim rngSel As Range
   
    Set rngSel = Application.InputBox("请选择工作表范围:", "选择", , , , , , 8)
    If rngSel Is Nothing Then Exit Sub
    rngSel.Copy
   
    Set aNotesUI = CreateObject("Notes.NotesUIWorkspace")
    Set aDocUI = aNotesUI.COMPOSEDOCUMENT("", "c:\work\temp.nsf", "Memo")
    Set aDocUI = aNotesUI.CURRENTDOCUMENT
    strTo = "test1@xxx.com"
    strCC = "test2@xxx.com"
    strSub = "test"
    strBody = "Here is a test with picture from Excel"

    ' 设置Field的内容
    Call aDocUI.FIELDSETTEXT("EnterSendTo", strTo)        ' 收件人
    Call aDocUI.FIELDSETTEXT("EnterCopyTo", strCC)      ' CC
    Call aDocUI.FIELDSETTEXT("Subject", strSub)         ' 主题
   
    ' 添加正文内容
    Call aDocUI.FIELDAPPENDTEXT("Body", vbCrLf & strBody & vbCrLf)

    ' 将选择的内容复制到正文中
    Call aDocUI.GOTOFIELD("Body")
    Call aDocUI.Paste

    ' 保存邮件
    Call aDocUI.Save
   
    ' 发送邮件
    'Call aDocUI.Send(True)

    Application.CutCopyMode = False
    Set aDocUI = Nothing
    Set aNotesUI = Nothing
    Set rngSel = Nothing   
End Sub
FieldSetText方法是设置文档中指定Field(也可以说是Item)的值,如果该Field中已经存在内容,则被覆盖。
FieldAppendText方法是在文档中指定的Field上添加内容,而不去除已有内容。

如果复制图表的话,可以将
Set rngSel = Application.InputBox("请选择工作表范围:", "选择", , , , , , 8)
If rngSel Is Nothing Then Exit Sub
rngSel.Copy
修改成:
If ActiveChart Is Nothing Then Exit Sub
ActiveChart.CopyPicture xlScreen, xlPicture, xlScreen

如果复制工作表中插入的图片的话,修改代码为(其中Shape需自己更改)为:
ActiveSheet.Shapes(2).Select
Selection.Copy

 

Lotus Notes Send EMail from VB or VBA
This ORIGINAL piece of code shows you how to mail direct from VBA or VB into lotus notes. Requires Lotus Notes Client 4.5.x or later is installed on your system.
As far as I can tell the Lotus Notes objects all have to be late bound otherwise you get errors. I have never found out the reason for this (the only thing I can think of is there is an error in the lotus notes api). Feel free to use this code,but if you do use it,please put a link from your site if you have one. Don't as many people have done blantantly rip it off and call it your own. I'm watching you and it's going to bite.
Point of note. Certain versions of 4.x client handle differently. If you get an error on the line MailDoc.CREATERICHTEXTITEM ("Attachment"),then try removing that line. In later versions of notes API this task is carried out by the previous line. Earlier versions required the call afterwards. Can't seem to fathom out the reason for that.
'Public Sub SendNotesMail(Subject as string,attachment as string,
'recipient as string,bodytext as string,saveit as Boolean)
'This public sub will send a mail and attachment if neccessary to the
'recipient including the body text.
'Requires that notes client is installed on the system.
Public Sub SendNotesMail(Subject As String,Attachment As String,Recipient As String,BodyText As String,SaveIt As Boolean)
'Set up the objects required for Automation into lotus notes
Dim Maildb As Object 'The mail database
Dim UserName As String 'The current users notes name
Dim MailDbName As String 'THe current users notes mail database name
Dim MailDoc As Object 'The mail document itself
Dim AttachME As Object 'The attachment richtextfile object
Dim Session As Object 'The notes session
Dim EmbedObj As Object 'The embedded object (Attachment)
'Start a session to notes
Set Session = CreateObject("Notes.NotesSession")
'Next line only works with 5.x and above. Replace password with your password
Session.Initialize("password")
'Get the sessions username and then calculate the mail file name
'You may or may not need this as for MailDBname with some systems you
'can pass an empty string or using above password you can use other mailboxes.
UserName = Session.UserName
MailDbName = Left$(UserName,1) & Right$(UserName,(Len(UserName) - InStr(1,UserName," "))) & ".nsf"
'Open the mail database in notes
Set Maildb = Session.GETDATABASE("",MailDbName)
If Maildb.ISOPEN = True Then
'Already open for mail
Else
Maildb.OPENMAIL
End If
'Set up the new mail document
Set MailDoc = Maildb.CREATEDOCUMENT
MailDoc.Form = "Memo"
MailDoc.sendto = Recipient
MailDoc.Subject = Subject
MailDoc.Body = BodyText
MailDoc.SAVEMESSAGEONSEND = SaveIt
'Set up the embedded object and attachment and attach it
If Attachment <> "" Then
Set AttachME = MailDoc.CREATERICHTEXTITEM("Attachment")
Set EmbedObj = AttachME.EMBEDOBJECT(1454,"",Attachment,"Attachment")
MailDoc.CREATERICHTEXTITEM ("Attachment")
End If
'Send the document
MailDoc.PostedDate=Now() 'Gets the mail to appear in the sent items folder
MailDoc.SEND 0,Recipient
'Clean Up
Set Maildb = Nothing
Set MailDoc = Nothing
Set AttachME = Nothing
Set Session = Nothing
Set EmbedObj = Nothing
End Sub

If you want to send a message to more than one person or copy or blind carbon copy the following may be of use to you.
MailDoc.sendto = Recipient
MailDoc.CopyTo = ccRecipient
MailDoc.BlindCopyTo = bccRecipient
Also for multiple email addresses you just set MailDoc.sendto to an array of variants each of which will receive the message. So
Dim recip(25) as variant
recip(0) = "emailaddress1"
recip(1) = "emailaddress2" e.t.c

maildoc.sendto = recip
Thanks must go out to
Mark Austin,Long Beach,California
assisted by the great folks at
www.deja.com & www.notes.net
for his help in finding the way to get the mailto appear in the sent items folder and his array method of sending the mail to more than one person.

 

94. 基于Notes/Domino的文档工作流系统(六) 上文分析了我们的流程配置使用三类对象,分别对应三类文档:工作流配置文档、节点配置文档和操作配置文档。本文介绍三类配置文档的内容,也可以看作本流程系统的设置教程。这些配置文档的共同点包括:处于编辑状态时,必填字段的右边会显示红色星号(这实际也是整个系统的共同设计),保存文档时会对这些字段进行校验。许多字段既能输入静态值,也可输入公式以计算动态值。输入公式时用大括号包围所写的公式,即{formulas 阅读详情

相关推荐

ZYNQ Linux环境下PS端I2C驱动OV5640摄像头全流程解析

本文详细解析了在ZYNQ Linux环境下,通过PS端I2C驱动OV5640摄像头的完整流程。内容涵盖从Vivado硬件配置、PetaLinux系统构建、设备树节点添加,到用户空间I2C编程与寄存器配置实战,并提供了关键的调试技巧与常见问题排查方法,帮助开发者快速实现嵌入式视觉应用的传感器配置。

vulkan6gpu的博客 863

IBM Notes常见问题及解决办法

问题: Notes客户端是否支持Win8系统,如何下载安装介质? 解决方法: 标题:Notes/Domino产品系统要求 链接:http://www-01.ibm.com/support/docview.wss?uid=swg27007909  下载链接: http://www-01.ibm.com/support/docview.wss?uid=swg27007909  

一个大龄码农的专栏 5万+

LabVIEW QMH模板实战:从创建到错误处理的完整指南

本文提供LabVIEW QMH模板从创建到错误处理的完整实战指南。详细解析了队列消息处理器(QMH)作为LabVIEW核心设计模式如何实现任务解耦与异步通信,涵盖事件处理循环、消息处理循环的搭建、用户事件创建、队列引用管理、消息优先级控制以及健壮的错误处理机制,帮助开发者构建稳定、可维护的复杂应用程序。

white的博客 729

HTML code of signature for IBM Lotus Notes

<html><head><title>mintank</title></head><body><div><p><spanstyle="font-size:12.0pt;fo...

weixin_33861800的博客 138

Xilinx ZYNQ 7000学习笔记二(FSBL代码分析启动-汇编代码)

Xilinx ZYNQ 7000学习笔记

u011116085的博客 4261

【SAP PO】SAP PO 接口配置完整教程之二REST服务对接

SAP PO 接口配置完整教程之二REST服务对接

XLevon的博客 1万+

在 IBM Lotus Notes 和 Domino 中编写快速查找代码

阅读在 IBM Lotus Notes 和 Domino 中编写快速查找代码的 11 个技巧。作者考察了 Lotus Notes 和 Domino 中的 @DbLookup @Formula 并描述了一些新技巧,供开发人员在编写新应用程序或对现有应用程序进行性能问题的故障检修时使用。本文将考察 @DbLookup,它可能是 IBM Lotus Notes 和 Domino 中最流行的 @For

陆君风的专栏 2060

Fastjson2升级指南:如何平滑迁移并避免兼容性问题

本文详细介绍了Fastjson2的升级指南,涵盖兼容性检查、性能调优及零停机迁移方案。通过实战案例展示如何避免常见问题,如日期格式严格校验和字段映射策略变化,并分享高性能配置技巧如JSONB二进制协议和内存池化。帮助开发者平滑迁移至Fastjson2,提升JSON处理效率。

weixin_29016865的博客 421

批量创建Notes数据库示例

下面为根据数据库模板批量创建Notes数据库的例子,供参考。Sub Initialize On Error Goto ErrHandle Dim ss As New NotesSession Dim db As NotesDatabase Dim doc As NotesDocument Dim strPlate As String Dim dbPlate As NotesDatabase  

点点滴滴 1170

TensorFlow2深度学习实战(十四):目标检测算法 YOLOv4 解析

最易上手的【计算机视觉】小白教程!

不积跬步,无以至千里! 7647

AI Agent Harness与SCADA系统集成

简单来说,AI Agent Harness是Industrial AI Agent的“中央调度室+装备库+知识库+安全网”把不同技术栈、不同部署环境(云/边/端)、不同功能(感知、推理、决策、执行、验证)的“零散Agent”组装成具备特定工业场景能力的Agent Team(如聚合反应根因诊断Agent Team);管理Agent Team的生命周期(创建、初始化、调度、监控、销毁);提供统一的工业多工具调用接口(对接SCADA、MES、PLC、DCS、巡检机器人、数字孪生平台等);内置。

欢迎来到我的CSDN空间!这里聚焦AI大模型应用实战,分享前沿技术、实战案例与开发经验。 363

VBS notes

VBS

m0_49588806的博客 141

【用unity实现100个游戏之16】Unity程序化生成随机2D地牢游戏1(附项目源码)

关于使用TileMap生成随机2D地图,其实之前已经有做过类似的,感兴趣可以看看 但是随着学习深入,发现之前做的比较粗糙和不够全面,最近又在外网看到

向宇的博客,专注php/web全栈 unity游戏开发,欢迎大家评论纠错 2222

Domino下通过vbs脚本删除指定主题邮件---脚本文件

'数据库路径 folder="\D$\IBM\Lotus\Domino\data\mail"subject =Trim(InputBox("请输入邮件主题:","提示")) '添加服务器地址,逗号隔开 serverArray=Array("192.168.220.11","192.168.220.12") For i= LBound(server...

weixin_33832340的博客 214

贝叶斯统计 [韦来生编]

贝叶斯(Bayes)统计是近几十年来迅速发展起来的数理统计的一个重要分支。贝叶斯方法与经典统计方法的主要不同之处是进行统计推断时除了利用样本信息外,还要利用参数的先验信息,因此可以提高统计推断或统计决策的效果。它在经济、金融、生物、医学、自然科学和社会科学等许多领域具有广泛的应用。贝叶斯方法的研究已渗透到了统计学的几乎所有领域。作者在给中国科学技术大学概率论与数理统计专业本科生开设的“数理统计”课程中有一章专门讲授“贝叶斯方法和统计决策理论”,近十年来也给中国科学技术大学概率统计专业研究生开设过几次“贝叶斯分析”课。本书是在对过去讲稿的内容作了适当的增减和调整的基础上完成的。  本书共分六章。第1章是绪论,介绍了贝叶斯统计的若干基本概念,同时对必要的数理统计的基础知识有重点地作了回顾。第二章介绍了确定先验分布的若干可供选择的方法。第三章介绍了几类常见统计模型参数的后验分布的主要结果和计算方法。第四章和第五章分别介绍了“贝叶斯统计推断”和“贝叶斯统计决策”的内容。第六章介绍了贝叶斯统计计算的若干方法,包括蒙特卡洛方法和马尔可夫链蒙特卡洛(MCMC)方法以及相关统计软件的简介。本书的每一章附右大量的例题和习题,书末附有常用的几个表格和部分习题解答供读者查用。  大约可在54学时内讲授本书的第1章至第六章的主要内容,教师可根据学时需要选讲本书第1章至第六章的部分内容。书中标“*”号的章节可略去不讲,留给读者作为阅读材料。第六章例题中的R代码和部分例题的数据文件等可从作者个人主页下载。  作者在编写本书的过程中参考了J.O.Berger教授的《统计决策论及贝叶斯分析》和茆诗松教授编写的《贝叶斯统计》等书中的一些内容,以及《贝叶斯分析》一书中由张伟平博士编写的有关贝叶斯统计计算的一些内容。在此表示衷心感谢。  本书编写准备过程中,中国科学技术大学统计与金融系的几个研究生帮助完成了本书部分中文的录入和排版,作者对他们的辛勤工作表示真诚的感谢。高等教育出版社为本书的出版给予了大力支持。在此一并致谢。

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

Domain Info Gather

1、判断是否有域 ipconfig /all nslookup domain_name systeminfo net config workstation net time /domain 通过net time /domain这条命令,依据命令回显结果,可以对当前用户做出区分: 1、在域内,是域用户 2、在域内,但不是域用户 3、不在域内 2、域内存活主机探测 利用netb...

prettyX的博客 621

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

内网域信息收集笔记

查看主机是否有域 ipconfig /all nslookup hacker.testlab 查看系统详细信息 systeminfo 如果域显示为workgroup就表示没有域 查看当前登录域以及登录信息 net config workstation 判断主域,一般服务器同为时间服务器 net time /domain 另外还有两种情况 1.存在域,但当前用户不是域用户,提示说明权限不够 2.当前网络环境是工作组,不存在域 探测域内存活主机 ...

hauzhao的博客 303

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

Notes真的无处不在

大家好,才是真的好。 本篇是2022年的第一篇公众号,首先祝大家2022年新年好。 差不多两年前我写过一篇《Notes无处不在》,还是仓促了,写的不够全面,现在才发现,Notes真的无处不在。 对了,你一定知道Notes客户机是啥吧? 有人说它是一个邮件和日历客户机程序,这么来说,也对,但不够全面。 在上个世纪90年代到本世纪初,Notes可是一个革命性的软件。除开邮件、联系人和日历等内置功能,还可以使用各种构建的、基于表单的应用程序或业务程序。 Notes是辣么优秀,以至于GTD(Getting Th.

XZZ_2018的博客 1153

IBM lutes Notes 邮箱迁移到Outlook邮箱全网最细教程

这时一篇关于大型网络中IBM邮箱迁移到outlook邮箱的真实案例实现方法

weixin_46255010的博客 5916

IBM notes 10 邮件限额告警的清理办法

压缩位于计算机上的应用程序时,Notes 可能需要根据必要的内部结构更改来生成此应用程序的临时副本。为此,应确保在生成过程中具有足够的磁盘空间存储临时应用程序副本。例如,如果您的管理员已设置邮件限额,当您的邮件文件超出了设定限额时,将看到警告对话框,说明您超出了限额。如果发生这种情况,可以释放未使用空间的方法之一就是压缩邮件文档。压缩 Notes 应用程序 压缩 IBM® Notes® 应用程序可恢复未使用的空间,以便应用程序能最有效地运行。如果 Notes 应用程序使用的是简单加密,那么可对其进行压缩。

u014785520的博客 1936

和IBM的Notes/Domino再见

2024 年 6 月 1 日起,HCL 将终止对IBM Notes/Domino 9.0.x 和10.0.x的技术支持和维护更新,这是一个重大节点,将表明Notes/Domino生态发展到了一个转折点,它结束过去的二十多年的一个篇章,HCL终将只支持以HCL冠名的Notes/Domino产品:包括11.0.x、12.0.x和14.0.x三个版本,同时也为未来新的Notes/Domino产品机遇和创新打开了一扇大门

XZZ_2018的博客 1291

安装IBM Notes V10.0.1中文版客户机

#dominoforever 大家好,才是真的好。今天我们来介绍Notes客户机和Admin(Designer)中文版客户机的安装和注意事项。Notes和Domino不太一样,Domino需要安装语言包,而Notes直接分为中文版、法语或其他版本等。 本例均采用Windows 10系统来进行测试。很多Windows 7不满足条件,根本装不上去——也有办法可以安装,大家如感兴趣,我后面会进行介绍。...

XZZ_2018的博客 1万+

Android平板上的“Notes”来了!

#dominoforever 大家好,才是真的好。去年11月,我们介绍了IDMA——IBM Domino Mobile Apps,即运行在iPad上的Notes客户机。不知道大家还有印象没?时隔一季,Android平板上的IDMA也即将发布啦。 一、Android上的HCL Nomad 眼见为实,不过它的名字是直接叫Notes,这回显示的是HCL Nomad。为了标明这是智能设备内置的Notes客...

XZZ_2018的博客 1541

Notes 免输入用户密码登入脚本

文件命令以*.vbs 脚本如下:(修改脚本中id and password即可) password = "123456" 'Notes密码 name = "lkf" '名字拼音 id = "123456" '工号 set ws = createobject("wscript.shell") if Not ws.appactivate(name) then ...

iteye_7163的博客 580

如何正确安装和设置IBM Lotus Notes 邮箱客户端

本文讲述了安装和设置IBM Lotus Notes 邮箱客户端软件的方法和步骤,以及安装过程中应该注意的问题,安装失败的原因和解决办法。 以IBM Lotus Notes 8.5版本为例进行说明。 工具/原料 PC IBM Lotus Notes 8.5邮箱客户端软件 (一)Lotus Notes 8.5邮箱客户端安装 1 将IBM Lotus Notes 8.5邮箱客户端软件复制或者下...

weixin_43765155的博客 9258

Notes.INI 详解

IBM 的文章,因为章节太多,请打开以下Link看 http://www.ibm.com/developerworks/cn/lotus/documentation/notes-ini/index.html 转载于:https://blog.51cto.com/subform/303483...

weixin_34184561的博客 145

56. 表单和文档的数据绑定——详谈NotesUIDocument.Reload()

在Notes客户端应用程序开发中,我们创建表单,用它们新建文档,然后在视图里打开、修改和删除文档。有时候我们会忽略了表单和文档是截然不同的两种实体。表单是我们在Designer里设计的,在客户端里看到的界面。文档本身则只是一个数据实体,没有界面,不包括各种格式信息和控件、操作、代码。我们从视图打开一个文档时,Notes客户端自动查找它所用的表单,然后用这个表单显示文档里的数据。一个表单可以用来显示...

我是传奇 395
上一篇: QTP中类的使用
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值