OutlookHolidaysLoader.FromFile(String, Encoding, String[]) Method
Loads holidays for specified locations from the specified file, using the specified encoding.
Namespace: DevExpress.Schedule
Assembly: DevExpress.Data.v24.1.dll
NuGet Package: DevExpress.Data
Declaration
public HolidayBaseCollection FromFile(
string fileName,
Encoding encoding,
string[] locations
)
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. |
encoding | Encoding | A Encoding class representing a character encoding. |
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)).