A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Calandaring
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to access appointments in non-default folder in Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 17th 10, 07:09 AM
Aditya Sen Aditya Sen is offline
Junior Member
 
First recorded activity at Outlookbanter: Feb 2010
Posts: 2
Thumbs down How to access appointments in non-default folder in Outlook

Hello Everyone,
I am making this application where i need to sync the calender items. I am able to do so for the Default Calendar folders of appointments, tasks and journals. But when i import some calendar, it create a sub folder within the Default folder named Calendar in Outlook. I am not able to access the items of this folder. The code that i am using to access the default folder for appointments is :

_ApplicationPtr m_pApp;
MAPIfolderPtr m_pAppointmentfolder;

m_pApp.CreateInstance(__uuidof(Application));
m_pAppointmentfolder = m_pApp-GetNamespace(_bstr_t("MAPI"))-Getdefaultfolder ( olfoldercalendar);

I am using Outlook 2010(beta) and I am programming in C++ in VC++. Please if someone can guide me in this direction, It would be a great help as I need to complete this quickly.
Thanks in advance.
Ads
  #2  
Old February 17th 10, 03:06 PM posted to microsoft.public.outlook.calendaring
Brian Tillman [MVP-Outlook]
external usenet poster
 
Posts: 1,043
Default How to access appointments in non-default folder in Outlook

"Aditya Sen" wrote in message
...

I am making this application where i need to sync the calender items. I
am able to do so for the Default Calendar folders of appointments, tasks
and journals. But when i import some calendar, it create a sub folder
within the Default folder named Calendar in Outlook. I am not able to
access the items of this folder. The code that i am using to access the
default folder for appointments is :

_ApplicationPtr m_pApp;
MAPIfolderPtr m_pAppointmentfolder;


First, the correct newsgroup for programming questions is
microsoft.public.outlook.program_vba. The correct forum for Outlook 2010
questions is
http://social.technet.microsoft.com/...utlook/threads
--
Brian Tillman [MVP-Outlook]

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation and Access to Outlook Appointments Guy Outlook and VBA 4 June 12th 08 05:05 AM
Default folder to Public folder when Exporting outlook form data toexcel Cass Outlook - General Queries 1 January 11th 08 01:33 PM
Cannot display the folder. Microsoft Office Outlook cannot access thespecified folder location. Boppy Outlook - General Queries 1 December 19th 07 01:16 AM
Rename the default outlook folder name or change to other folder ggevaert Outlook - General Queries 2 November 23rd 06 05:33 PM
How do I restore access to my default email folder? Chris Goetz Outlook - Installation 1 April 29th 06 07:53 AM


All times are GMT +1. The time now is 01:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.