Hi,
I need to import data into an existing excel 2007 ".xlsx" file. The file is stored in a uri location as opposed to a physical path location. I even tried accesing the file from a physical path. However the code breaks at the following line
Workbook workbook = new Workbook();
FileStream fstream = new FileStream("D:\\Test\\Book1.xlsx", FileMode.Open);
*** workbook.Open(fstream,FileFormatType.Excel2007Xlsx);
I get an exception stating that "Operation could destabilize the runtime". Kindly advice in this regard. I'm however able to add data to an excel 2003 (.xls) file.
Thanks