Create, Save, and Read Outlook Notes in C++

Aspose.Email for C++ allows you to create and manage Outlook Notes programmatically. The MapiNote class provides all essential properties - such as subject, body text, color, and size - to build and customize a note.

This article demonstrates how to create, save, and read Outlook notes stored in MSG format.

Create and Save an Outlook Note

To create and save an Outlook note to disk, follow the steps below:

  1. Instantiate a MapiNote object.
  2. Set note properties such as subject, body, color, height, and width.
  3. Save the note to disk in MSG format.

The following code sample demonstrates how to create a colored sticky note with custom dimensions and save it as an Outlook message file.

Read an Outlook Note

A note saved as an MSG file can be loaded as a MapiMessage and then cast to a MapiNote object.

The following code sample demonstrates how to load a sticky note from an Outlook MSG file and convert it to a MapiNote object.