OutlookHolidaysLoader.FromFile(String) Method

Loads holidays from the specified file.

Namespace: DevExpress.Schedule

Assembly: DevExpress.Data.v20.1.dll

Declaration

public HolidayBaseCollection FromFile(
    string fileName
)
Public Function FromFile(
    fileName As String
) As HolidayBaseCollection

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.

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)).

See Also