Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

show both ecma-376 and open office methods of sheet protection passwo…

…rd hashing
  • Loading branch information...
commit aced2a0c1ec5bebadbe8be00b5734eb5ae9b6685 1 parent ec39d3f
@randym authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 examples/sheet_protection.rb
View
5 examples/sheet_protection.rb
@@ -4,5 +4,8 @@
require 'axlsx'
p = Axlsx::Package.new
-p.workbook.add_worksheet { |ws| ws.sheet_protection.propper_password = 'fish' }
+p.workbook.add_worksheet(:name => 'ECMA-376') { |ws| ws.sheet_protection.propper_password = 'fish' }
+p.workbook.add_worksheet(:name => 'Open Office') { |ws| ws.sheet_protection.password = 'fish' }
p.serialize 'sheet_protection.xlsx'
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.