diff options
| author | Randy Morgan <[email protected]> | 2012-02-13 19:47:12 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-02-13 19:47:12 +0900 |
| commit | a78481741fa7b6bf999461a12cc5c9dce026ea49 (patch) | |
| tree | 884cccc2e1a6d19aeaa1fb3e0735062c8d61601b /examples/example.rb | |
| parent | 6117fc28b5c5e1cf2ca21d9e35ecccf8c626d6fe (diff) | |
| download | caxlsx-a78481741fa7b6bf999461a12cc5c9dce026ea49.tar.gz caxlsx-a78481741fa7b6bf999461a12cc5c9dce026ea49.zip | |
update readme/changelog for release.
Diffstat (limited to 'examples/example.rb')
| -rw-r--r-- | examples/example.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/example.rb b/examples/example.rb index e88ffd32..9e4b0277 100644 --- a/examples/example.rb +++ b/examples/example.rb @@ -187,6 +187,13 @@ sheet.auto_filter = "A2:D5" end +##Specifying Column Widths + + wb.add_worksheet(:name => "custom column widths") do |sheet| + sheet.add_row ["I use autowidth and am very wide", "I use a custom width and am narrow"] + sheet.auto_fit_data[1][:fixed] = 3 + end + ##Validate and Serialize p.validate.each { |e| puts e.message } @@ -197,6 +204,7 @@ ##Using Shared Strings + p.use_shared_strings = true p.serialize("shared_strings_example.xlsx") |
