From dc9d198b7b19505ad6a7320522df9ed114ea379a Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Tue, 23 Dec 2014 16:07:48 -1000 Subject: Add usage information to row_column_style example --- examples/example.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/example.rb') diff --git a/examples/example.rb b/examples/example.rb index 116ce730..5eacdce9 100755 --- a/examples/example.rb +++ b/examples/example.rb @@ -210,6 +210,7 @@ if examples.include? :row_column_style head = s.add_style :bg_color => "00", :fg_color => "FF" percent = s.add_style :num_fmt => 9 wb.add_worksheet(:name => "Columns and Rows") do |sheet| + # Note: you must add rows to the document *BEFORE* applying column styles to them sheet.add_row ['col 1', 'col 2', 'col 3', 'col 4', 'col5'] sheet.add_row [1, 2, 0.3, 4, 5.0] sheet.add_row [1, 2, 0.2, 4, 5.0] @@ -825,4 +826,4 @@ if examples.include? :rich_text end p.serialize 'rich_text.xlsx' end -#``` \ No newline at end of file +#``` -- cgit v1.2.3