We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to create predefined calendars into pst subfolder?

hello,
i am creating pst file . i want to create predefined calendar folder, which create into subfolder.
is there anyway to create predefined calendar folder into subfolder ?

Thanks & regards.
Mantu Malakar

Hi Mantu,

Thank you for your inquiry.

This is to update you that you can create/add MapiCalendar into PST file. Please go through the link Working with Calendar Items in PST File for details. Feel free to contact us in case of any further query or comments.

Hello sir,
I have created a pst file and i can easily create calender inside the root folder. But i need to create the calender inside the sub-folder. eg Mails > Test >My Calender
I want “My Calender” folder for storing calender files.
Can i get a possible way for creating this?
Thankz & Regards
Mantu Malakar

Hi Mantu,


Thank you for contacting Aspose support team.

You may please give a try to the following sample code which creates required folder hierarchy in personal storage.

using (PersonalStorage pst = PersonalStorage.Create(“output.pst”, FileFormatVersion.Unicode))<o:p></o:p>

{

FolderInfo info = pst.CreatePredefinedFolder("Inbox", StandardIpmFolder.Inbox);

FolderInfo test = info.AddSubFolder("Test");

test.AddSubFolder("My Calendar", "IPF.Appointment");

}

PersonalStorage pst2 = PersonalStorage.FromFile("output.pst");

FolderInfo inbox = pst2.GetPredefinedFolder(StandardIpmFolder.Inbox);

FolderInfo MyCalendar = inbox.GetSubFolder("Test").GetSubFolder("My Calendar");