Description

Return true if Excel is installed, else false.

Namespace:  DuoDimension.Sunflower
Assembly:  Sunflower.Excel (in Sunflower.Excel.dll)
Version: 1.0.0.0

Syntax

      
 C#  Visual Basic 
public bool IsExcelInstalled { get; }
Public ReadOnly Property IsExcelInstalled As Boolean

Examples

CopyC#
void functionA()
{
    DuoDimension.Sunflowe.Excel convert = new DuoDimension.Sunflowe.Excel("*******");
    if (convert.IsExcelInstalled == true)
    {
        convert.XlsxToCsv(xlsxfile, csvfile);
        ...
    }
    else
    {
        Console.Write("Excel is not installed.");
    }
}
CopyVB.NET
Sub functionA()
    Dim convert As New DuoDimension.Sunflower.Excel("*******")
    If convert.IsExcelInstalled = True Then
        convert.XlsxToCsv(xlsxfile, csvfile)
        ...
    Else
        Console.Write("Error of Excel initialization.")
    End If
End Sub

See Also