Hello!
We are planning to use Aspose Cells for the workbooks’ properties population. Aspose does the processing (evaluation notification exits), but properties are missing when using 2007 format. 2003 format works fine. We have faced similar problems also with the Aspose.Slides (<!–[if gte mso 10]>
<![endif]–><span style=“font-size: 12pt; font-family: “Times New Roman”,“serif”;”>Presentation properties are not working)
.
public class CellDemo {
public static void main (String [] arg){
Workbook workbook = new Workbook();
try {
workbook.open(“C:/temp/test_xls.xls”);
} catch (IOException e) {
e.printStackTrace();
}
try {
workbook.getWorksheets().getBuiltInDocumentProperties().setCompany(“Company Test!”);
} catch (Exception e1) {
}
CustomDocumentProperties customProperties = workbook.getWorksheets().getCustomDocumentProperties();
customProperties.add(“Test”, “Test”);
try {
workbook.save(“C:/temp/test_xls_out.xls”,FileFormatType.EXCEL2003);
} catch (IOException e) {
e.printStackTrace();
}
try {
workbook.save(“C:/temp/test_xlsx_out.xlsx”,FileFormatType.EXCEL2007);
} catch (IOException e) {
e.printStackTrace();
}
}
}
Jaakko