私のプログラムで
Map<String, Collection<Employee>> beans = new HashMap<String, Collection<Employee>>();
beans.put("employee", staff);
XLSTransformer transformer = new XLSTransformer();
try {
transformer.transformXLS("C:/Users/hussain.a/Desktop/newprojectpocdetails/temp (Autosaved).xls", beans, "C:/Users/hussain.a/Desktop/newprojectpocdetails/demo.xls");
${employee.field1} 、${employee.field2} などのセル数式を設定していますが、正しく機能しています
しかし、次の数列では、オブジェクトから取得した値を計算する必要があるため、次のように記述します
${employee.field1} + ${employee.field2}
// not working but results in string 1 followed by string 2
// say field1=3 , field=4 , output cell has 3+4 not 7
=sum(${employee.field1} ,${employee.field2})
// not working says error
=sum(${employee.field+employee.field2})
// not working says error
出力 xls シートで目的の計算を取得するために数式を正しく記述する方法