Apache poi dsl for scala
Workbook {
Sheet("name") {
Row(1) {
Cell(1, "data") :: Cell(2, "data2") :: Nil
} ::
Row(2) {
Cell(1, "data") :: Cell(2, "data2") :: Nil
} :: Nil
} ::
Sheet("name2") {
Row(2) {
Cell(1, "data") :: Cell(2, "data2") :: Nil
} :: Nil
} :: Nil
}.safeToFile("/home/georgii/ok.xls")
- Add this repository to your pom.xml:
<repository>
<id>thenewmotion</id>
<name>The New Motion Repository</name>
<url>http://nexus.thenewmotion.com/content/repositories/releases-public</url>
</repository>
- Add dependency to your pom.xml:
<dependency>
<groupId>info.folone.scala.poi</groupId>
<artifactId>poi-scala</artifactId>
<version>0.5</version>
</dependency>