when I save workbook, its file format gets changed unexpectedly from xlt(52) to xlsx(6). Can you help me with this? I am using aspose.cells 17.11.0 for java.
String fileName = "home/Book4.xlt"; Workbook workbook = new Workbook(fileName); String path = "home"; String name = "Book4-aa.xlt"; System.out.println(workbook.getFileFormat()); //prints 52 (xlt file format) workbook.save(new FileOutputStream(new File(path, name)), workbook.getFileFormat()); System.out.println(workbook.getFileFormat()); //prints 6 (xlsx file format)
Book4.xlt.zip (6.5 KB)