summaryrefslogtreecommitdiffhomepage
path: root/examples/no_grid_with_borders.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-09-26 21:17:25 +0900
committerRandy Morgan <[email protected]>2013-09-26 21:17:25 +0900
commit168fcb8406d80f863d5d1b50a38e585580f89acf (patch)
treeadc9dd82aa356dcabe8396d21aa0e3926ac7b9a3 /examples/no_grid_with_borders.rb
parent46a17e4b3fe0531ac6b2e48f818a982a86f538e4 (diff)
downloadcaxlsx-168fcb8406d80f863d5d1b50a38e585580f89acf.tar.gz
caxlsx-168fcb8406d80f863d5d1b50a38e585580f89acf.zip
extended examples and smooth lines for line chart
Diffstat (limited to 'examples/no_grid_with_borders.rb')
-rw-r--r--examples/no_grid_with_borders.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/no_grid_with_borders.rb b/examples/no_grid_with_borders.rb
new file mode 100644
index 00000000..aed9eb76
--- /dev/null
+++ b/examples/no_grid_with_borders.rb
@@ -0,0 +1,18 @@
+#!/usr/bin/env ruby -w -s
+# -*- coding: utf-8 -*-
+$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
+
+#```ruby
+require 'axlsx'
+package = Axlsx::Package.new
+package.workbook do |workbook|
+ workbook.styles do |s|
+ gridstyle_border = s.add_style :border => { :style => :thin, :color =>"FFCDCDCD" }
+ workbook.add_worksheet :name => "Custom Borders" do |sheet|
+ sheet.sheet_view.show_grid_lines = false
+ sheet.add_row ["with", "grid", "style"], :style => gridstyle_border
+ sheet.add_row ["no", "border"]
+ end
+ end
+end
+package.serialize 'no_grid_with_borders.xlsx'