summaryrefslogtreecommitdiffhomepage
path: root/examples/example.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-12 14:59:29 +0900
committerRandy Morgan <[email protected]>2012-02-12 14:59:29 +0900
commit15a9dcb6e06faf2630987264f358c386f3f5f496 (patch)
treebcf924a5aa9779933c0a1293441d1001978eb037 /examples/example.rb
parent69f005f2030733c12d0d41ab056768a7761c16c0 (diff)
downloadcaxlsx-15a9dcb6e06faf2630987264f358c386f3f5f496.tar.gz
caxlsx-15a9dcb6e06faf2630987264f358c386f3f5f496.zip
update example to include shared strings usage
Diffstat (limited to 'examples/example.rb')
-rw-r--r--examples/example.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 9ccb40fa..e88ffd32 100644
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -194,5 +194,12 @@
s = p.to_stream()
File.open('example_streamed.xlsx', 'w') { |f| f.write(s.read) }
+
+
+##Using Shared Strings
+ p.use_shared_strings = true
+ p.serialize("shared_strings_example.xlsx")
+
+