Package org.eclipse.birt.report.engine.api

Examples of org.eclipse.birt.report.engine.api.IDataExtractionTask.extract()


         
          //Set the HTTP response
        response.setContentType("text/csv");
        response.setHeader("Content-disposition", "inline; filename=reportcsv.csv");
        iDataExtract.selectResultSet( dispName );
        iDataExtract.extract(extractionOptions);
        logger.debug("Extraction successfull "+dispName);
        break;
      }
      }
     
View Full Code Here


          IResultSetItem resultItem = (IResultSetItem)resultSetList.get(0);
     
          //Set the name of the element you want to retrieve.
        String dispName = resultItem.getResultSetName( );
        iDataExtract.selectResultSet( dispName );
        iDataExtract.extract(extractionOptions);
        logger.debug("Extraction successfull "+dispName);
        }
        else {
          //with more resultSet generate a zip file containing more CSV file
          try {
View Full Code Here

             IResultSetItem resultItem = (IResultSetItem)resultSetList.get(i);
         
            //Set the name of the element you want to retrieve.
            String dispName = resultItem.getResultSetName( );
            iDataExtract.selectResultSet( dispName );
            iDataExtract.extract(extractionOptions);
            logger.debug("Extraction successfull "+dispName);
          
            // Add ZIP entry to ZIP output stream
            outZip.putNextEntry(new ZipEntry("reportcsv"+i+".csv"));
         
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.