Hello,
dear colleagues!
Here's
another problem. We're trying to find a workaround to fix the conversion from
xls to xlsb (see the issue CELLSJAVA-41731).
We
create an xls file using Excel 2010. We put some wordart objects into it. One
of them contains static text, another references to an unnamed cell, and the
last to the named cell.
So we're
trying to convert it to xlsb.
The
result is almost pretty, except we lose all transparency effects in wordart.
The
result is much more better, if we're trying to convert xlsx file with the same
content (actually xls file is the result of "Save as" applied to xlsx
in Excel 2010).
Please
pay your attention that both xls and xlsx files work fine in Excel 2010 with no
difference in appearance or behavior of wordarts.
You can
see the sample code below and sample Excel files in attachment.
public
class Test2
{
public static void main(String[] args) throws Exception
{
Workbook
workbook = new
Workbook(Test2.class.getResourceAsStream("example_xlsb_2.xlsx"));
File
result1 = File.createTempFile("result", ".xlsb");
workbook.save(result1.getAbsolutePath(),
SaveFormat.XLSB);
System.out.println(result1.getAbsolutePath());
workbook.dispose();
}
}