Hi,
I want to publish a excel report with merged cells. I am unable to merge the cells.
output = Context.createExcelWorkbook("Book");
sheet = output.createSheet("Sheet1");
row1= sheet .createRow(0);
row2= sheet.createRow(1);
//I want to merge first coumn and second column of second row
//So I tried this
sheet .addRegion(0,1,1,1);
//But it always throws me an error!!When I use above code I am getting Error Index:1 Size=0
Can anyone guide me on this please?
Eva Klein on
I hope this will help you. If you have further questions please feel free to ask me.
var workbook = Context.createExcelWorkbook(Context.getSelectedFile()); var sheet = workbook.createSheet("Sheet1"); sheet.addRegion(0,1,1,1); workbook.write();Regards
Eva