We have evaluated the presented scenario while using the latest version of Aspose.Cells for Java 8.7.0.2, and we are able to observe the said problem, that is; if result is saved in XLSB format, the shape formula does not refresh. We have logged this incident as CELLSJAVA-41731 in our bug tracking system. Please spare us little time to properly analyze the scenario to get back with updates in this regard.
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();
}
}
We have evaluated the recently shared case while using the latest version of Aspose.Cells for Java 8.7.0.2, and we are able to notice the said issue, that is; transparency is reset to 0 after converting XLS to XLSB. We have logged this incident as CELLSJAVA-41739 for further investigation by the product team. Please spare us little time to properly analyze the case and get back with updates in this regard.
It is to inform you that we have fixed your issue CELLSJAVA-41731 now. We will soon provide the fix after performing QA and including other enhancements and fixes.
We are afraid, this issue could not be fixed. After further investigation, we found the file must be saved by MS Excel 2007, because of Excel 2007 we do not support reading
those advance records about the setting of transparency of the shapes
now.
We have logged your comment in our database against this issue for re-investigation. We will look into it and update you. Once the issue is resolved or we have some other news for you, we will let you know asap.
Your xls file is created by MS Excel 2007. Some records about transparency are created by MS Excel 2007 and Aspose.Cells does not support those records now.
We’ve prepared some test for xls 2 xlsb conversion with WordArts.
You can see some sample files:
test.xlsx – simple xlsx file created by MSE 2010.
test.xls – simple xls file create by MSE 2010 from test.xlsx thru “Save as” .xls
test_aspose.xlsb – xlsb file generated by aspose from test.xls
test_excel.xlsb – xlsb file generated by MSE 2010 from test.xls
As you can see 3 and 4 differs by the transparency effect. Is there any way to obtain xlsb from xls using Aspose.Cells without losing the transparency effect.
Well, I am afraid, the issue “CELLSJAVA-41739” is not resolved yet, so you will get transparency issue for the Word Arts/shapes when rendering to XLSB file format. I have logged your new files with details against your existing issue “CELLSJAVA-41739” for our product team’s reference. I am afraid, unless we figure out your issue (regarding transparency effects) or support those transparency records in the XLSB files, there may not be any workaround to cope with it.
Once we have any update on your issue, we will let you know here.