Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 8 lines (7 sloc) 0.278 kb
1 2 3 4 5 6 7 8
#!/usr/bin/env ruby -w -s
# -*- coding: utf-8 -*-
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'axlsx'

p = Axlsx::Package.new
p.workbook.add_worksheet(:name => 'Open Office') { |ws| ws.sheet_protection.password = 'fish' }
p.serialize 'sheet_protection.xlsx'
Something went wrong with that request. Please try again.