Skip to content

Instantly share code, notes, and snippets.

View vikbehal's full-sized avatar

vikrant behal vikbehal

  • Infosys
  • Washington DC
View GitHub Profile
@jramb
jramb / excel_core.clj
Created June 13, 2011 14:24
Creating and updating Excel files with Clojure/poi.apache.org
((ns excel.core
(:import [org.apache.poi.hssf.usermodel HSSFWorkbook HSSFSheet HSSFRow
HSSFRichTextString HSSFFont HSSFDataFormat
HSSFCellStyle HSSFCell])
(:import [java.io FileOutputStream FileInputStream IOException])
#_(:import [org.apache.poi.ss.util CellRangeAdrress]))
(defn make-excel [file-name]
(let [wb (HSSFWorkbook.)