你好,我在单元格的如下图所示:
不显示公式,在前端SpreadJS中验证结果如下:
同样的操作,我在后端GCExcel中验证,然后直接导出PDF文件,下面是我的验证代码:
public class Demo {
public static void main(String[] args) {
// Create a new workbook and add worksheets
Workbook workbook = new Workbook();
IWorksheet worksheet = workbook.getWorksheets().get(0);
// Set value
worksheet.getRange("A1").setFormula("=COUNT(1,1,2)");
worksheet.getRange("A2").setFormula("=COUNT(文字,1,2)");
// Export Workbook to pdf file, the exported file has two pages.
workbook.save("ConvertWorkbookToPDF.pdf", SaveFileFormat.Pdf);
}
}
导出的PDF中显示结果异常,显示结果如下图所示:
由GCExcel计算的结果与SPreadJS计算结果不一致,带文字的计算错误
|