When a new Workbook is created and saved by Aspose Cells, the
<Application> XML node within the
app.xml file is always empty. The expectation is that the node be populated to identify the Application. For example, a new Workbook saved under Excel has the following value:
This behavior can be seen in the latest Aspose Words for Java version 21.3, and the following Java code:
Workbook workbook = new Workbook();
If you open the new workbook in a ZIP viewer (such as 7-Zip) and examine the file
\docProps\app.xml - you should see that the the Application node is empty:
We realize this is not a major issue. However, we rely on the the value from the
<Application> node to identify the type of Office document. When it is not populated, we need to use other means for discovering the file type.
We have understood your requirement and have logged a ticket in our database for further investigation. We will notify you here once any update is ready for sharing.
This issue is logged as:
CELLSJAVA-43438 - Fill <Application> tag in XLSX
Please set Workbook.BuiltInDocumentProperties.NameOfApplication by yourself to fulfill your needs via Aspose.Cells API.
Thank you for your reply.
Apologies for reviving this old thread, but one of the reasons this issue was raised is because - we need a way to identify when a Workbook is saved under the Aspose Cells library. We typically read the
<Application> node in
app.xml for discovery purposes.
Also note that the Aspose Slides and Aspose Words libraries do populate the
<Application> node in their corresponding
app.xml files. We realize they are different libraries, but
app.xml is a common within a XLSX, DOCX & PPTX file.
Thanks for your further feedback and concerns.
We have reopened your existing ticket “CELLSJAVA-43438”. We will check the feasibility of your requirements (if this can be supported) and get back to you with further details.
In the meantime, please do as directed:
It’s fixed. It will be included into the next release version 23.2 which is scheduled in the first half of February 2023.
Please check dest.zip (5.9 KB)
The issues you have found earlier (filed as CELLSJAVA-43438) have been fixed in Aspose.Cells for Java 23.2.