Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2003

Tip: Looking for answers? Try searching our database.

Problems to Create appointments with VBScript and Exchange

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sergei - 30 Sep 2003 20:29 GMT
We have Exchange 2000 and ASP.

I'm using Microsoft sample code to create appointments
programmitically:

But always getting System error on line:

iMBX.BaseFolder

System cannot find the path specified.

Exchange and Web Server are 2 different machines.

If anyone knows please reply to szilbermints@babson.edu

Thank You

------------------------------------------

Dim Info
       Info = CreateObject("ADSystemInfo")
       Dim iPer
       iPer = CreateObject("CDO.Person")
       Dim iAddr
       iAddr = CreateObject("CDO.Addressee")
       ' Response.Write("user:" & Environment.UserName)
       Dim iMBX
       Response.Write(Info.DomainDNSName)
       iAddr.EmailAddress = "myname@" & Info.DomainDNSName
       Response.Write(iAddr.CheckName("LDAP://" &
Info.DomainDNSName))
       Response.Write("User name: " & Info.username & _
       "  Directory: " & iAddr.DirURL)
       iPer.DataSource.Open("mailto:" &
iAddr.EmailAddress)
       iMBX = iPer.GetInterface("IMailBox")
       Response.Write("Email: " & iPer.Email)
       ' Response.Write(iMBX.BaseFolder)

       'Creating Appointment

       Dim strFreeBusy
       'Get the free/busy status
       strFreeBusy = iAddr.GetFreeBusy("5/11/2000
13:00:00 PM", "5/11/2000 15:00:00 PM", 30)
       Response.Write("<br>Free Busy=" & strFreeBusy
& "<br>")

       'LAB - Set Appointment
       Dim objAppt
       Dim Conn
       objAppt = CreateObject("CDO.Appointment")
       Conn = CreateObject("ADODB.Connection")
       Conn.Provider = "ExOLEDB.Datasource"
       With objAppt
           .StartTime = "5/13/2000 2:00:00 PM"
           .EndTime = "5/13/2000 3:00:00 PM"
           .Subject = "Meet me- in St. Louis"
           .Location = "St. Louis"
           .TextBody = "I left my heart in San Francisco,
so I may be... "
Sue Mosher - 30 Sep 2003 21:44 GMT
Try asking in the microsoft.public.exchange.applications
group. This group is for Outlook client apps.

Signature

Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
    Microsoft Outlook Programming: Jumpstart
    for Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx 

>-----Original Message-----
>We have Exchange 2000 and ASP.
[quoted text clipped - 60 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.