I’ve been looking into processing files that are passed into my assembly as streams, this is working well for most files so far but there is an odd issue I have come across when using the Aspose Cells library in conjunction with saving to streams.
If I pass in an XLSX document, it is processed and returned fine, but when I pass in an XLS document, there is no SaveFormat enum for an XLS document, so I have to use SaveFormat.Xlsx which then shows an error when the end user attempts to open it since the file type has technically been changed…is there no support for saving XLS files to streams or is there a workaround to achieve this?
Currently, my save code are just the two lines below:
XLS is actually Microsoft Excel 97-2003 format, it is an old format. So we have defined SaveFormat.Excel97To2003 which actually means XLS format. Once you will use it your workbook will be saved in XLS format.
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.