I opened some xlt-file with Apache POI, changed it and saved it as xls-file.
But if I open result xls-file with Excel and click File -> Save as... the type of file still will be Template *.xlt.
So I need to save xlt-file as xls (not only change name, but format).
Used code:
HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream("D:\\Template.xlt"));
// ...
workbook.write(new FileOutputStream("D:\\Result.xls"));