I am using JXL.jar to generate Excel from ruby, when I format the cell, I need set the cell format with code like this: in java:
WritableFont font = new WritableFont(WritableFont.ARIAL, 20,
WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE,
Colour.RED);
in ruby with Rjb:
font_class = Rjb.import("jxl.write.WritableFont")
font = font_class.new(WritableFont.ARIAL, 20,
WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE,
Colour.RED)
this sure will not work, as ruby does not know WritableFont.ARIAL, so please help to point out how to send WritableFont.ARIAL like constant params to the font_class
Thanks in advance