diff options
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/example.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 +#``` |
