OutlookHolidaysLoader.FromFile(String, String[]) Method
Loads holidays for specified locations from the specified file.
Namespace: DevExpress.Schedule
Assembly: DevExpress.Data.v19.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
fileName | String | A string that is the location of the holidays file. For MS Office 2013 US English you can find it at C:\Program Files\Microsoft Office\Office15\1033\outlook.hol. |
locations | String[] | An array of strings containing location names. |
Returns
Type | Description |
---|---|
HolidayBaseCollection | A HolidayBaseCollection collection containing holidays imported from MS Outlook. |
Remarks
By default the outlook.hol file is located in the language ID folder of the Office installation directory:
C:\Program Files\Microsoft Office\Office xx\LCID\outlook.hol
where xx is 12 for Office 2007, 14 for Office 2010, 15 for Office 2013 and LCID is your locale identification (LCID) number (1033 for English (United States)).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FromFile(String, String[]) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.