When trying to extract embedded content in the file :
Can t open / unprotect the the sheet 1 and 2
the first sheet extract one embedded file with format type 255(UNKNOWN) ( Aspose::Cells::FileFormatType enum)
how to get the right format to work on it ?
@tb9528
We detected and saved the sample file through the following example code, and found that the content of the file was only an incorrect description. Please refer to the attachment. out_net.zip (247.0 KB)
The sample code as follows:
FileFormatInfo info = FileFormatUtil.DetectFileFormat(filePath + "0eb9bd85b8ce62ea6d923814284a614e95c6ffc9ae7de92ee3393f9d07c0ccad");
Console.WriteLine(info.FileFormatType);
Workbook wb = new Workbook(filePath + "0eb9bd85b8ce62ea6d923814284a614e95c6ffc9ae7de92ee3393f9d07c0ccad");
wb.Save(filePath + "out_net.xlsx");
The output:
Excel97To2003
Would you like to provide the original sample files and test code? We will check it soon.
@tb9528
Thank you for your feedback. By testing with the following sample code, we can reproduce the issue. Found a file whose format type cannot be detected. Regarding the current format types supported by Cells for detection, please refer to the following document.
FileFormatInfo info = FileFormatUtil.DetectFileFormat(filePath + "Embedded_0eb9bd85b8ce62ea6d923814284a614e95c6ffc9ae7de92ee3393f9d07c0ccad_null6");
Console.WriteLine(info.FileFormatType);
info = FileFormatUtil.DetectFileFormat(filePath + "Embedded_0eb9bd85b8ce62ea6d923814284a614e95c6ffc9ae7de92ee3393f9d07c0ccad_null255");
Console.WriteLine(info.FileFormatType);
We need to evaluate support for detecting OLE (Object Linking and Embedding) format in details. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSNET-56451
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@tb9528
We are pleased to inform you that your issue has been resolved. The fix will be included in our upcoming release (Aspose.Cells for .NET 24.9) that we plan to release in the first half of September 2024. You will be notified when the next version is released.
@tb9528
Thank you for your feedback. The fix will be included in our upcoming release (Aspose.Cells for Java 24.9) that we plan to release in the first half of September 2024. You will be notified when the next version is released.
The issues you have found earlier (filed as CELLSNET-56451) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi
Please note that we provide the same parallel features, enhancements, and fixes in the Java version of the API. If you’re using Java, you can use Aspose.Cells for Java v24.9, which includes all the features, improvements, and fixes available in the .NET version. Moreover, if you are not using Java, you don’t need to upgrade to latest Aspose.Cells for Java, you just need to update .NET version.
And if you are using java version, and for “newer version of java” you are talking about the version of your java environment, then you do not need to upgrade your java/jdk version. Aspose.Cells for Java supports JDK1.6 and later versions.