We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Opening Office 2007 excel files

Greetings,

Its me again about failing to open an excel file. I noticed that the program fails if the file is an xlsx file. But it works fine for xls.

Is there any property I should set to get this to work?

See my code:
License license = new License();

//Set the license of Aspose.Cells to avoid the evaluation limitations

license.SetLicense(@"C:\Program Files\Aspose\Aspose.Cells for .NET\Bin\Net2.0\Aspose.Cells.lic");

//Instantiate a Workbook object that represents an Excel file

Workbook workbook = new Workbook();

//Creating a file stream containing the Excel file to be opened

//FileStream fstream = new FileStream(@"C:\Documents and Settings\ejuarez\My Documents\2007 Version\Inputs Test Cases 10_23_2009.xlsx", FileMode.Open);

//Opening the Excel file through the file stream

workbook.Open(@"test.xlsx");


This message was posted using Aspose.Live 2 Forum

Hi,

Thank you for considering Aspose.

Please use workbook.Open("C:\\book1.xlsx", FileFormatType.Excel2007Xlsx). If you still face any problem in opening the Excel 2007 file, please share your template file and we will check it soon. You may also check the following documentation link for reference:

http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/opening-files.html

Thank You & Best Regards,