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?

 

 or register to reply.

Notify Moderator