examples/example.rb in fast_excel-0.4.1 vs examples/example.rb in fast_excel-0.5.0
- old
+ new
@@ -20,9 +20,11 @@
date_format = workbook.number_format("[$-409]m/d/yy h:mm AM/PM;@")
worksheet.set_column(2, 2, 20, date_format)
worksheet.write_row(0, ["message", "price", "date", "complete"], bold)
+worksheet.write_comment(2, 2, "Comment to field")
+
for i in 1..1000
worksheet.write_row(i, ["Hello", (rand * 10_000_000).round(2), Time.now, i % 2 == 0])
# Or manually
# worksheet.write_string(i, 0, "Hello", nil)
\ No newline at end of file