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.