0

我正在尝试在 Exchange 2000 中使用 CDOEX 创建约会。代码片段来自 msdn,是 VB6。

当我到达这一行时:“.DataSource.SaveToContainer iMbx.Calendar,Conn”我收到错误“无法完成功能(800703eb)”

任何帮助将不胜感激!

Function CreateAppointment(StartTime As Date, _
                            EndTime As Date, _
                            Subject As String, _
                            Location As String, _
                            TextBody As String, _
                            iMbx As IMailbox) As Appointment

' Reference to Microsoft ActiveX Data Objects 2.5 Library
' Reference to Microsoft CDO for Exchange 2000 Library

    Dim iAppt       As New Appointment
    Dim Conn        As New ADODB.Connection
    Conn.Provider = "ExOLEDB.DataSource"

    'Set the appointment properties
    With iAppt
        .StartTime = StartTime
        .EndTime = EndTime
        .Subject = Subject
        .Location = Location
        .TextBody = TextBody
        'Save the appointment
        Conn.Open iMbx.BaseFolder
        .DataSource.SaveToContainer iMbx.Calendar, Conn
    End With

    Set CreateAppointment = iAppt
End Function
4

1 回答 1

0

我找到了问题和解决方案,所以在这里以防有人需要它:链接 另外,我找到了挽救我生命的示例:链接

于 2011-01-22T19:04:42.697 回答