Installation
reports
is available as a Maven artifact from Clojars
With Leiningen/Boot:
[clanhr/reports "0.1.0"]
The functionalities are provided by the reports.core
namespace.
First, require it in the REPL:
(require '[reports.core :as reports])
Or in your application:
(ns my-app.core
(:require [reports.core :as reports]))
Here's how to generate a new vacations balance report using the library:
(def data [["Superman" "30" "10" "20" "20"]
["Batman" "50" "2" "30" "29"]])
(def workbook "Report")
(def filename "reports.xlsx")
(defn create-spreadsheet-test
(reports/vacations-balance-report {:data data
:workbook workbook
:filename filename}))