Yes, but David is correct. Even if you use SS, behind the scenes you are using 
either HSSF or XSSF depending on how you created your Worksheet object. And 
there is no way to switch the Worksheet object to the other.

-----Original Message-----
From: MARK GOLDEN [mailto:[email protected]] 
Sent: Wednesday, November 16, 2016 12:41 PM
To: POI Users List <[email protected]>
Subject: Re: XLS and XLSX with XSSF

Hi,
I think HSSF is for XLS, XSSF is for XLSX and you can use SS for either.
R,Mark.  

    On Wednesday, 16 November 2016, 6:45, David North 
<[email protected]> wrote:
 

 Hi Markus,

This question would be best asked on the POI user list
([email protected]) - moving thread there.

> is there a way to write the same file as xls and xlsx file ?
> For example with XSSF.

The APIs require you to pick one or the other - unfortunately although the two 
share a set of common interfaces, we don't have code to clone one 
implementation into the other.

> I tried writing a xlsx file with HSSF and it works.

That's surprising. Are you sure it's actually written an .xlsx file (a ZIP with 
XML inside it)? Or is it the case that Excel happily opens an .xls with the 
.xlsx extension?

> Can i use XSSF for XLS and XLSX without any problems?
> 
> Thanks a lot.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] For additional 
> commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional 
commands, e-mail: [email protected]



   

Reply via email to