-
-
Couldn't load subscription status.
- Fork 241
Formatting
Ahmed Kamal edited this page Jun 10, 2019
·
3 revisions
book = Spreadsheet::Workbook.new
sheet = book.create_worksheet name: "Sheet 1"
row = sheet.row(1)sheet.default_format = Spreadsheet::Format.new color: :bluerow.default_format = Spreadsheet::Format.new color: :redrow.default_format = Spreadsheet::Format.new font: Spreadsheet::Font.new("Courier New")Spreadsheet::Font.new("Courier New", size: 14)row.default_format = Spreadsheet::Format.new font: Spreadsheet::Font.new("Courier New", color: :red)