I checked your template file and it is of “Microsoft Excel 4.0 Worksheet”. To confirm it, open the file into MS Excel 2003, now click Save As and your will see the save as type in the combobox of the Save As dialog box. For your information, Aspose.Cells supports BIFF8 or greater formats (Excel 97 - Excel 2007/2010).
I think you may try the following steps in MS Excel:
· Open your template file in MS Excel (e.g…,Ms Excel 2003 or 2007).
· Save the file As “Microsoft Office Excel Workbook”.
· Now you can use Aspose.Cells to open/manipulate the file to your required format for your requirements.
Your response implies the use of the MS office client. However, this application will run on a server that will only have the Aspose DLLs and no MS office software installed.
Can your suggested workaround be done programmatically using the following Aspose APIs and without saving a local copy of the file?
//Specifying the path of Excel file using ImportExcelFile method of the control
gridDesktop1.ImportExcelFile("D:\\book1.xls");
//Accesing a worksheet using its index
Worksheet sheet = gridDesktop1.Worksheets[0];
Well, I am sorry but there is no API available in any of the product provided by Aspose.Cells for .NET suit that supports BIFF7 or earlier formats (Excel 95 or earlier formats). We only support BIFF8 or greater formats (Excel 97 - Excel 2010). Moreover, our GridDesktop control also does not support older Excel version e.g (Excel 95 or Excel 4.0 etc.), your code will not work.
So, if you need to manipulate your template files, the only workaround is what I suggested you by manually re-saving the file in MS Excel, then use Aspose.Cells component to manipulate the file.
We recommend you to kindly try upgrading to and use latest version of the product which includes support for older BIFF7 (Excel 95/5.0 - 2003 Workbook) formats with enhancements now:
Also, see the document for supported input and output file formats by Aspose.Cells:
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.