Jun 27: Having fun with Outlook (IV)
Jun 27: Having fun with Outlook (III)
Jun 27: Having fun with Outlook (II)
To open another person's calendar you have to know a name Outlook/Exchange can resolve. The format which seems to work best is "Lastname, Firstname":
Some basic code to fetch these entries might look something like that:
using Outlook = Microsoft.Office.Interop.Outlook;
/* ... */
// Login to Outlook and exchange
Outlook.Application outlook = new Outlook.Application();
Outlook.NameSpace mapi = outlook.GetNamespace("mapi");
mapi.Logon(null, null, true, true);
// Resolve the user
Outlook.Recipient rcp = mapi.CreateRecipient("Lastname, Firstname");
if (!rcp.Resolve())
{
// Error handling - User not found!
}
// Get the calendar folder
Outlook.MAPIFolder calendar = mapi.GetSharedDefaultFolder(rcp, Outlook.OlDefaultFolders.olFolderCalendar);
Jun 27: Having fun with Outlook (I)
Jun 27: A XUL list with resizeable columns
Recently I improved my XUL and JavaScript skills and wrote a small XUL application. To browse some data from a database. While at it I tried to create a list with resizable columns. While trying to get some help one of the suggestions was not to use a tree instead of a listbox to show a list. But well, that didn't solve the issue, the next important thing is to add a splitter betwwen the column headers, but well that alone would be too easy: You also have to set the CSS class to tree-splitter... So that's what such a tree looks like:
Thanks to Arne and Uwe for answering my stupid questions