Spread Windows Forms 12.0 Product Documentation
ExcelWarningList Constructor
Example 


FarPoint.Excel Assembly > FarPoint.Excel Namespace > ExcelWarningList Class : ExcelWarningList Constructor
Creates a list of warnings for Excel file operations.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New ExcelWarningList()
public ExcelWarningList()
Example
This example gets the warning list.
FarPoint.Excel.ExcelWarningList warningList = new FarPoint.Excel.ExcelWarningList();
            fpSpread1.OpenExcel("c:\\test.xlsx", FarPoint.Excel.ExcelOpenFlags.NoFlagsSet, warningList);
            if (warningList.Count > 0)
                for (int i = 0; i < warningList.Count; i++)
                    MessageBox.Show(warningList[i].Message);
Dim warningList As New FarPoint.Excel.ExcelWarningList()
        fpSpread1.OpenExcel("c:\test.xlsx", FarPoint.Excel.ExcelOpenFlags.NoFlagsSet, warningList)
        If warningList.Count > 0 Then
            For i As Integer = 0 To warningList.Count - 1
                MessageBox.Show(warningList(i).Message)
            Next
        End If
See Also

Reference

ExcelWarningList Class
ExcelWarningList Members