0

enter image description here

I am using apache poi creating the excel. I want to create the structure shown in above image.

I am not aware how to customise as per the image.

Hulk
  • 6,399
  • 1
  • 30
  • 52
  • 1
    Which aspect is unclear to you? How to create merged cells? – Hulk Nov 15 '18 at 07:37
  • 1
    Possible duplicate of [Merging cells in Excel using Apache POI](https://stackoverflow.com/questions/18716032/merging-cells-in-excel-using-apache-poi) – Hulk Nov 15 '18 at 07:40

1 Answers1

1

You can use

sheet.addMergedRegion(new CellRangeAddress(rowFrom,rowTo,colFrom,colTo));

And specify the row numbers and column numbers accordingly.

Pooja Aggarwal
  • 1,163
  • 6
  • 14