Advise to create regions in excel using HSSF

Joined
Aug 29, 2009
Messages
1
Reaction score
0
Hello.

I have a problem creating my excel file using HSSF. In excel I can merge cells using sheet.addMergedRegion(new CellRangeAddress(int firstRow, int lasRow, int firstCol, int lastCol))

My problem is I have datatables with differents headers which contains cells with rowspan and colspan and I want to create the same structure in excel.

I have defined the structure like you do in regular html to create the cells of a html table.

I have tried reading recursivily this structure and place in excel but no way. Maybe there is another way to do, I don't know but it would be great if somebody can give me an advise to do this.

thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top