M
Michael
Hi,
I use Outlook Object Model and Redemption to access calendar type
folders for different outlook profiles.
Next are the main steps that is use:
- Create an Outlook application object.
- Logon to a specific profile.
- Get the required calendar folder by folder ID and store ID.
- Do the work on the appointment items as needed.
- Logoff from the session.
- Perform cleaning (COM objects and so on).
Sometimes I need to do this several times, with different Outlook
profiles, some of them configured with Exchange.
Enerything works fine if the Outlook application is not started.
If the application is already started when I execute my code, I get an
error ("Your profile is not configured.") when I try to get the
calendar folder for an Exchange configured Outlook profile.
I assume this is caused by the session already opened by Outlook.
I tried to logon using the Session class from Redemption and all went
fine, even when Outlook was started. But the problem is that I need to
access all data from an appointment item and I cannot use only
Redemption objects to do this.
So, the main questions are:
- Can I logon to a MAPI session using Redemption, and then using OOM
with that opened session to process appointment items?
- Is there another solution to the problem?
Thank you,
Michael
I use Outlook Object Model and Redemption to access calendar type
folders for different outlook profiles.
Next are the main steps that is use:
- Create an Outlook application object.
- Logon to a specific profile.
- Get the required calendar folder by folder ID and store ID.
- Do the work on the appointment items as needed.
- Logoff from the session.
- Perform cleaning (COM objects and so on).
Sometimes I need to do this several times, with different Outlook
profiles, some of them configured with Exchange.
Enerything works fine if the Outlook application is not started.
If the application is already started when I execute my code, I get an
error ("Your profile is not configured.") when I try to get the
calendar folder for an Exchange configured Outlook profile.
I assume this is caused by the session already opened by Outlook.
I tried to logon using the Session class from Redemption and all went
fine, even when Outlook was started. But the problem is that I need to
access all data from an appointment item and I cannot use only
Redemption objects to do this.
So, the main questions are:
- Can I logon to a MAPI session using Redemption, and then using OOM
with that opened session to process appointment items?
- Is there another solution to the problem?
Thank you,
Michael