I have an application that reads a xml
file, takes the data and passes it to a file in xls
format. But when I open the file that was gerardo the following message appears:
Would anyone explain the cause of this error?
The POI is divided into H and X libraries.
H libraries (HSSF, HWPF, HSLF) produce .doc , .xls and .ppt < strong>, while X libraries (XSSF, XWPF, XSLF) produce the .docx , .xlsx and .pptx < strong>.
As you are using XSSF, changing the file extension saved to .xlsx solves the problem.