B4J Question jPOI : How to draw border on an empty cell?

incendio

Well-Known Member
Licensed User
Longtime User
Hello guys,

I have a borders style :
B4X:
Private XLBorderS As PoiCellStyle
XLBorderS.Initialize(wb)
XLBorderS.BorderBottom = XLBorderS.BORDER_HAIR
XLBorderS.BorderTop  = XLBorderS.BORDER_HAIR

I want to draw top & bottom border, so it will look like this



Codes like this, will only draw border on cell C4
B4X:
Private Sub SetStyleToRowCells(row As PoiRow, style As PoiCellStyle)
    For Each cell As PoiCell In row.Cells
        cell.CellStyle = style
    Next
End Sub

Is it possible to draw border on cell A4 & cell B4 ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…