summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-06-23 10:11:23 +0100
committerRandy Morgan <[email protected]>2013-06-23 10:11:23 +0100
commit86180711acbb7f9c6a04688fc9e6ffbf27bacf19 (patch)
tree336dbcaeb65f9161f2b361c485a8e65976f13357 /examples
parent7caf2ea9dfe92fa418f40132ea3c94d3da109f2c (diff)
downloadcaxlsx-86180711acbb7f9c6a04688fc9e6ffbf27bacf19.tar.gz
caxlsx-86180711acbb7f9c6a04688fc9e6ffbf27bacf19.zip
added sparse array transposition with blocks for rows/cols switching and some docs updates for release prep
Diffstat (limited to 'examples')
-rw-r--r--examples/underline.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/underline.rb b/examples/underline.rb
new file mode 100644
index 00000000..ccd1b394
--- /dev/null
+++ b/examples/underline.rb
@@ -0,0 +1,13 @@
+$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
+require 'axlsx'
+p = Axlsx::Package.new
+p.workbook do |wb|
+ wb.styles do |s|
+ no_underline = s.add_style :sz => 10, :b => true, :u => false, :alignment => { :horizontal=> :right }
+ wb.add_worksheet(:name => 'wunderlinen') do |sheet|
+ sheet.add_row %w{a b c really?}, :style => no_underline
+ end
+ end
+end
+p.serialize 'no_underline.xlsx'
+