S
seacuke
I'm not sure this is the right forum for this question, but what the
heck?
I've got a .net user control that uses an Outlook View Control to look
at someone's Outlook calendar. For the purposes of this posting I'll
restrict the compatibility to OLKXP (version 10) and later.
The control is written in C#, and the following is how we go about
showing the calendar in the user control:
private const string CALENDARFOLDER = "Calendar";
private const string CALENDARFOLDERVIEW = "Day/Week/Month";
private AxOLXLib.AxViewCtl calView;
....
public CalendarView()
{
// This call is required by
// the Windows.Forms Form Designer.
InitializeComponent();
calView.Folder = CalendarView.CALENDARFOLDER;
calView.View = CalendarView.CALENDARFOLDERVIEW;
}
This works fine in the US. However, in other countries, the Calendar
is not named a Calendar, it's named whatever the local-language
equivalent of 'Calendar' is. So when I try the calView.Folder =
"Calendar" I get an exception thrown.
The issue is trying to figure out how to get the string "Calendar"
localized, how can I query Outlook to get the name of the "Calendar"
folder in the local language?
Thanks,
brian
heck?
I've got a .net user control that uses an Outlook View Control to look
at someone's Outlook calendar. For the purposes of this posting I'll
restrict the compatibility to OLKXP (version 10) and later.
The control is written in C#, and the following is how we go about
showing the calendar in the user control:
private const string CALENDARFOLDER = "Calendar";
private const string CALENDARFOLDERVIEW = "Day/Week/Month";
private AxOLXLib.AxViewCtl calView;
....
public CalendarView()
{
// This call is required by
// the Windows.Forms Form Designer.
InitializeComponent();
calView.Folder = CalendarView.CALENDARFOLDER;
calView.View = CalendarView.CALENDARFOLDERVIEW;
}
This works fine in the US. However, in other countries, the Calendar
is not named a Calendar, it's named whatever the local-language
equivalent of 'Calendar' is. So when I try the calView.Folder =
"Calendar" I get an exception thrown.
The issue is trying to figure out how to get the string "Calendar"
localized, how can I query Outlook to get the name of the "Calendar"
folder in the local language?
Thanks,
brian