Hello,
I'm using Aspose.Cells for Java 2.2.1
The
function cell. getFormula() has problem with the
same names in several sheets.
I have two sheets "Sheet 1" and "Sheet 2". The both have the
same name "Name2". Sheet 1 contains the following formula: =SUM (Name1;'Sheet 2'!Name2).
Function getFormula() returns: "=SUM(Name1,'Sheet 1'!Name2)". Probably function only searches by name and not by sheet name.
Code:
workbook.open("Template.xls");
Worksheets worksheets = workbook.getWorksheets();
Worksheet sheet = worksheets.getSheet("Sheet 1");
System.out.println("formula : " + sheet.getCells().getCell(4, 0).getFormula());
Output:
formula : =SUM(Name1,'Sheet 1'!Name2)
<span style=“font-size: 10pt; font-family: “Tahoma”,“sans-serif”;” lang=“EN-US”><o:p> </o:p>
Thanks,
<span style=“font-size: 10pt; line-height: 115%; font-family: “Tahoma”,“sans-serif”;” lang=“EN-US”>Inna