Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jferard/spreadsheetwrapper
An abstraction layer over some APIs for Excel or Calc
https://github.com/jferard/spreadsheetwrapper
Last synced: 1 day ago
JSON representation
An abstraction layer over some APIs for Excel or Calc
- Host: GitHub
- URL: https://github.com/jferard/spreadsheetwrapper
- Owner: jferard
- Created: 2015-09-17T18:25:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-29T20:38:01.000Z (over 2 years ago)
- Last Synced: 2023-05-29T11:23:58.896Z (over 1 year ago)
- Language: Java
- Size: 1.18 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpreadsheetWrapper - An abstraction layer over some APIs for Excel or Calc
## Copyright
SpreadsheetWrapper - An abstraction layer over some APIs for Excel or Calc
Copyright (C) 2015 J. FérardThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .## Goal
The goal of SpreasheetWrapper is to provide an abstraction layer over some APIs used to write spreadsheet documents (POI, odftoolkit, ...). It's useful when you can't choose which API will be embedded in the jar.## Installation
```
$> mkdir spreadsheetwrapper-parent
$> git clone https://github.com/jferard/spreadsheetwrapper
$> mvn clean install
```## Usage
In your POM :
```...
...
com.github.jferard
spreadsheetwrapper
1.0.1-SNAPSHOT
org.odftoolkit
odfdom-java
0.8.7
```
In your code :
```
final DocumentFactoryManager manager = new DocumentFactoryManager(null);
SpreadsheetDocumentFactory factory = manager.getFactory("ods.odfdom.OdsOdfdomDocumentFactory");
final SpreadsheetDocumentWriter documentWriter = factory.create();
final SpreadsheetWriter newSheet = documentWriter.addSheet("0");
newSheet.setInteger(0, 0, 1);
...
```