diff options
| author | Randy Morgan <[email protected]> | 2012-02-25 17:21:42 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-02-25 17:21:42 +0900 |
| commit | 694af4f58d113c294340246660dbe314764a9bd3 (patch) | |
| tree | ed8cf0423708dc5b6b0a1d616fb30e097e97673e /examples/example.rb | |
| parent | 4c2ccec3b3553419c2251cc6c53fc53baadab146 (diff) | |
| download | caxlsx-694af4f58d113c294340246660dbe314764a9bd3.tar.gz caxlsx-694af4f58d113c294340246660dbe314764a9bd3.zip | |
readme and examples updates
Diffstat (limited to 'examples/example.rb')
| -rw-r--r-- | examples/example.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/example.rb b/examples/example.rb index 3487044a..41a08c50 100644 --- a/examples/example.rb +++ b/examples/example.rb @@ -201,6 +201,12 @@ sheet.column_widths nil, 3 end +##Specify Page Margins for printing + margins = {:left => 3, :right => 3, :top => 1.2, :bottom => 1.2, :header => 0.7, :footer => 0.7} + wb.add_worksheet(:name => "print margins", :page_margins => margins) do |sheet| + sheet.add_row["this sheet uses customized page margins for printing"] + end + ##Validate and Serialize p.validate.each { |e| puts e.message } @@ -216,5 +222,6 @@ p.serialize("shared_strings_example.xlsx") + |
