Error message after opening an Excel file generated by an application

1

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?

    
asked by anonymous 24.07.2015 / 13:52

1 answer

5

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.

    
24.07.2015 / 14:16