Hi,
My windows application has reference to the above mentioned dlls. I am looking to load a excel 2007 file to the grid, and i keep getting the below exception message. I believed Infragistics3.Excel.v9.2.dll supported this Load. The code breaks at Workbook.Load(fs); where fs is filestream
Any idea what could be wrong?
Many Thanks
Renu
Hi Mike,
I changed the code to the pass the file path.
I still see the same error.
I have a filedialog . user selects the file and then i have this line
fs =
new System.IO.FileStream(selectedFile, System.IO.FileMode.Open, System.IO.FileAccess.Read);
Let me try with the file directly.
The excel file is simple file with data in 6 columns. No formulas / fomatting etc.
Thanks
Hi Renu,
It would appear that there is a problem with your filestream. How are you creating this stream? What does the code look like?
Also.. just out of curiosity, why use a FileStream instead of just using the filename? Are you manipulating the file stream in some way before you try to load the Workbook?
Sorry, Forgot to paste the error message
---------------------------Error---------------------------Error: The specified stream or file does not contain a valid workbook.
Parameter name: stream---------------------------OK ---------------------------
Sorry, forgot to paste the error message.