I had use XSSFWorkbook
which was work fine in all device(even for MAC), But now i migrate on SXSSFWorkbook
, So now i face one problem xlsx file not able to view on MAC
So how can i achieve this as like in XSSFWorkbook
.
I had use XSSFWorkbook
which was work fine in all device(even for MAC), But now i migrate on SXSSFWorkbook
, So now i face one problem xlsx file not able to view on MAC
So how can i achieve this as like in XSSFWorkbook
.
Without knowing what program you're using, it's hard to be sure. However, assuming your program is similar to the problematic iOS one in the several-year-old thread you mention, then what you need to do is tell SXSSF to write strings to the Shared Strings table rather than inline. Be aware that this will result in higher memory use.
You can do that using this constructor to SXSSFWorkbook by passing a value of true for the boolean useSharedStringsTable
Assuming you're creating a new file, and your constructor code was
Workbook wb = new SXSSFWorkbook(20);
You'd now do:
Workbook wb = new SXSSFWorkbook(null, 20, false, true);
Have a look at the JavaDocs for more on the various constructor options and their impacts