Package it.eng.spagobi.engines.qbe.services.worksheet.exporter

Examples of it.eng.spagobi.engines.qbe.services.worksheet.exporter.WorkSheetPDFExporter$MyHeaderFooter


   
  }
 
  public void exportToPDF(JSONObject worksheetJSON, OutputStream outputStream) throws Exception {
   
    WorkSheetPDFExporter exporter = new WorkSheetPDFExporter();
    exporter.open(outputStream);
    exporter.setNumberFormat(numberFormat);
    exporter.setUserDateFormat(userDateFormat);
   
    int sheetsNumber = worksheetJSON.getInt(SHEETS_NUM);
    JSONArray exportedSheets = worksheetJSON.getJSONArray(EXPORTED_SHEETS);
    for (int i = 0; i < sheetsNumber; i++) {
      JSONObject sheetJ = exportedSheets.getJSONObject(i);
      if(isTableContent(sheetJ)){
        IDataStore dataStore = getTableDataStore(sheetJ);
        exporter.addSheet(sheetJ, dataStore);
      }else{
        exporter.addSheet(sheetJ);
      }
    }
   
    exporter.close();
    outputStream.flush();
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.qbe.services.worksheet.exporter.WorkSheetPDFExporter$MyHeaderFooter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.