* Reads in from a CSV file and Writes to System.out the Spreadsheet as CSV.
*
* @param args
*/
public static void main(String[] args) {
WorkBookHandle book = null;
try{ // generate a PDF and confirm
// load the current file and output it to same directory
book = new WorkBookHandle(System.getProperty("user.dir") + "/docs/samples/Input_CSV/contacts.csv");
System.out.println(book.getStats());
Logger.logInfo("Successfully read CSV into spreadsheet: " +book);
}catch(Exception e){
Logger.logErr("Spreadsheet_CSV_Input failed.",e);
}
// Write out the spreadsheet as CSV --
try {
WorkSheetHandle wsh = null;
wsh = book.getWorkSheet(0);
StringBuffer arr = new StringBuffer();
// return WorkBookCommander.returnXMLErrorResponse("PluginSheet.get() failed: "+ex.toString());
RowHandle[] rwx = wsh.getRows();
for (int i=0;i<rwx.length;i++) {
RowHandle r = rwx[i];