Skip to content

Instantly share code, notes, and snippets.

@akm
Forked from taka2/gist:9289
Created September 8, 2008 02:19
Show Gist options
  • Save akm/9360 to your computer and use it in GitHub Desktop.
Save akm/9360 to your computer and use it in GitHub Desktop.
require 'java'
require 'poi-3.1-FINAL-20080629.jar'
java.io.FileOutputStream.new("test2.xls") do |io|
wb = org.apache.poi.hssf.usermodel.HSSFWorkbook.new
wb.createSheet("First")
wb.write(io)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment