红宝石电子表格宝石包装文字可以吗?

Pau*_*nch 3 ruby excel spreadsheet

有没有办法使用ruby电子表格gem来生成一个包含文本包装的单元格的电子表格?(如果没有,还有其他方法吗?)

谢谢, - 保罗

ps为了回应两个很好的建议,遗憾的是这对我不起作用,我应该注意:1)我目前无法将我的ruby应用程序转换为JRuby.2)我正在开发Linux,而不是Windows.

小智 11

请尝试使用Ruby电子表格gem:

 fmt = Spreadsheet::Format.new :text_wrap => true
 sheet.row(y).set_format(x, fmt)
Run Code Online (Sandbox Code Playgroud)

在这里形成:

http://rubyforge.org/forum/forum.php?set=custom&forum_id=2920&style=nested&max_rows=50&submit=Change+View