R
rajesh
Please take a look at the following code snippet.
Dim OutlookApplication As Outlook.Application
Dim OutlookNameSpace As Outlook.NameSpace
Dim outlookAppointmentItem As Outlook.AppointmentItem
OutlookApplication = New Outlook.Application()
OutlookNameSpace = OutlookApplication.GetNamespace("mapi")
outlookAppointmentItem = DirectCast(OutlookApplication.CreateItem
_(Outlook.OlItemType.olAppointmentItem), AppointmentItem)
When I attempt to create an appointment, the system throws an
exception saying 'An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred'. ' The
information store could not be opened.' However, this code works fine
if my outlook is open on the workstation. but, when outlook is closed
it does not work. Cannot we make this code work while outlook is
closed too? All I need is to create an appointment in outlook even
when outlook is closed.
Please clarify this.
Regards,
Rajesh
Dim OutlookApplication As Outlook.Application
Dim OutlookNameSpace As Outlook.NameSpace
Dim outlookAppointmentItem As Outlook.AppointmentItem
OutlookApplication = New Outlook.Application()
OutlookNameSpace = OutlookApplication.GetNamespace("mapi")
outlookAppointmentItem = DirectCast(OutlookApplication.CreateItem
_(Outlook.OlItemType.olAppointmentItem), AppointmentItem)
When I attempt to create an appointment, the system throws an
exception saying 'An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred'. ' The
information store could not be opened.' However, this code works fine
if my outlook is open on the workstation. but, when outlook is closed
it does not work. Cannot we make this code work while outlook is
closed too? All I need is to create an appointment in outlook even
when outlook is closed.
Please clarify this.
Regards,
Rajesh