weshatheleopard / rubyXL

Ruby lib for reading/writing/modifying .xlsx and .xlsm files
MIT License
1.28k stars 255 forks source link

can't get borders of a cell #242

Closed ryanlion closed 8 years ago

ryanlion commented 8 years ago

when i call row.cells[0].border_bottom [DEPRECATION] border_bottom is deprecated. Please use get_border instead. nil

when i call row.cells[0].get_cell_border *\ NoMethodError Exception: private method `get_cell_border' called for #<RubyXL::Cell(0,0): "0", datatype = s, style_index = 0>

nil

RKushnir commented 8 years ago

Have you tried calling get_border as it suggests?

weshatheleopard commented 8 years ago
> require 'rubyXL'
> doc=RubyXL::Parser.parse('test/input/test.xlsx')
> doc[7][0][0].get_border(:bottom)
 => "thin"