axlsx icon indicating copy to clipboard operation
axlsx copied to clipboard

Different border styles for a cell

Open shiblybcc opened this issue 7 years ago • 1 comments

Hi, I need thick left, right border of a cell and thin top, bottom border of the same cell. Currently I do something like this

wlr = s.add_style :bg_color => bg_color lr = s.add_style :b => false, :border => { :style => :thick, :color => "00", :edges => [:left, :right] } sheet.add_row([ cell[1][1], cell[1][2]], :style => [wlr, lr])

This gives me thick left, right border of second cell. But I also need thin top bottom borders of that cell. How can I do this? Thanks

shiblybcc avatar Apr 24 '17 09:04 shiblybcc

If someone will face the same issue, here is the solution https://github.com/randym/axlsx/pull/147

RoM4iK avatar Mar 19 '19 17:03 RoM4iK