package org.zkoss.zss.model.impl.html;

import java.io.File;
import java.io.IOException;

import org.zkoss.zss.model.SBook;
import org.zkoss.zss.range.SImporter;
import org.zkoss.zss.range.impl.imexp.ExcelImportFactory;

public class MainHTML {

	public static void main(String[] args) throws IOException {
		SImporter importer = new ExcelImportFactory().createImporter();
		File file = new File("D:\\Roli\\Dropbox\\ZK\\zsscml\\zsspdf\\src\\org\\zkoss\\zss\\model\\impl\\pdf\\simple.xlsx");
		SBook book = null;
		try {
			book = importer.imports(file , "XSSFBook");
		} catch (IOException e) {
			e.printStackTrace();
		}
		if(book == null) return;
		
		// TODO Auto-generated method stub
		HtmlExporter exporter = new HtmlExporter();
		exporter.export(book, new File("./target/test.html"));
	}

}
