summaryrefslogtreecommitdiffhomepage
path: root/examples/example.rb
diff options
context:
space:
mode:
authorJason Axelson <[email protected]>2014-12-23 16:07:48 -1000
committerJason Axelson <[email protected]>2014-12-23 16:07:48 -1000
commitdc9d198b7b19505ad6a7320522df9ed114ea379a (patch)
tree3867589ced20ee548a3a76eb89d8b536facb58bf /examples/example.rb
parent4199f37303923637d02717b32c52b9dc83fc478b (diff)
downloadcaxlsx-dc9d198b7b19505ad6a7320522df9ed114ea379a.tar.gz
caxlsx-dc9d198b7b19505ad6a7320522df9ed114ea379a.zip
Add usage information to row_column_style example
Diffstat (limited to 'examples/example.rb')
-rwxr-xr-xexamples/example.rb3
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
+#```