Description

Return true if Excel is installed, else false.

Namespace:  DuoDimension.Databeam
Assembly:  Databeam.Excel (in Databeam.Excel.dll)
Version: 2.1.0.0

Syntax

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

Examples

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

See Also