Free Support Forum -

How does an excel template get data form a map?

Worksheet w = …
w.getCells().get(“A1”).putValue("& w1");
w.getCells().get(“B1”).putValue("& w2"); //With spaces in the middle of name and w2

Map<String,String> m = new HashMap();
m.put(“name w1”, “a1”);
m.put(“name w2”, “a2”);

List ls = new ArrayList();
wb.setDataSource(“table”, ls);


The above code,the result has no data fill, how to transform to get the data with space in the label.


I am unable to execute the shared code because of some undefined objects. Please share a working sample application while using Aspose.Cells for Java 18.7 on your end. Also mention your JDK version for our reference.