Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Problem Loading File Into Workbook Object
posted

I'm trying to use the Infragistics.Excel library to load an excel file into an Infragistics.Excel.Workbook object.  I am using the 2008.3.2102 version targeting the 2.0 framework.  This is the line of code I'm using:

Infragistics.Excel.Workbook wb = Workbook.Load(this.txtExcelFile.Text);

 

And this is the error I'm getting:

The value of argument 'value' (195) is invalid for Enum type 'PaperSize'.
Parameter name: value

 

Any ideas out there what I'm doing wrong?  I am able to load this file into a datatable using the Microsoft.Jet.OLEDB method just fine.

Thanks,

Justin