summaryrefslogtreecommitdiffhomepage
path: root/examples/no_autowidth_example.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/no_autowidth_example.md')
-rw-r--r--examples/no_autowidth_example.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/no_autowidth_example.md b/examples/no_autowidth_example.md
new file mode 100644
index 00000000..bd01203d
--- /dev/null
+++ b/examples/no_autowidth_example.md
@@ -0,0 +1,24 @@
+## Description
+
+This is a very basic example with a worksheet and two rows of data.
+
+## Code
+
+```ruby
+require 'axlsx'
+
+p = Axlsx::Package.new
+p.use_autowidth = false
+
+wb = p.workbook
+
+wb.add_worksheet(name: 'Basic Worksheet') do |sheet|
+ sheet.add_row ['oh look! no autowidth']
+end
+
+p.serialize 'no_autowidth_example.xlsx'
+```
+
+## Output
+
+![Output](images/no_autowidth_example.png "Output")