本文整理汇总了Java中net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportReport方法的典型用法代码示例。如果您正苦于以下问题:Java JRPptxExporter.exportReport方法的具体用法?Java JRPptxExporter.exportReport怎么用?Java JRPptxExporter.exportReport使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jasperreports.engine.export.ooxml.JRPptxExporter
的用法示例。
在下文中一共展示了JRPptxExporter.exportReport方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: export
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
public void export(HttpServletRequest req, HttpServletResponse res) throws Exception {
String fileName=this.getExportFileName(req);
fileName+=".pptx";
res.setContentType("application/octet-stream");
res.setHeader("Connection", "close");
res.setHeader("Content-Disposition", "attachment;filename=\"" + new String(fileName.getBytes("utf-8"),"ISO-8859-1") + "\"");
JRPptxExporter exporter = new JRPptxExporter(DefaultJasperReportsContext.getInstance());
JasperPrint jasperPrint=this.getJasperPrint(req);
exporter.setParameter(JRExporterParameter.JASPER_PRINT,jasperPrint);
OutputStream ouputStream = res.getOutputStream();
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, ouputStream);
try {
exporter.exportReport();
} catch (JRException e) {
throw new ServletException(e);
} finally {
if (ouputStream != null) {
ouputStream.flush();
ouputStream.close();
}
}
}
示例2: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/ScriptletReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
SimplePptxReportConfiguration configuration = new SimplePptxReportConfiguration();
configuration.setProgressMonitor(new SimpleExportProgressMonitor());
exporter.setConfiguration(configuration);
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例3: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
File[] files = getFiles(new File("build/reports"), "jrprint");
for(int i = 0; i < files.length; i++)
{
long start = System.currentTimeMillis();
File sourceFile = files[i];
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("Report : " + sourceFile + ". PPTX creation time : " + (System.currentTimeMillis() - start));
}
}
示例4: exportPptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
public void exportPptx() throws JRException {
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(
this.output.getAbsolutePath() + ".pptx"));
exporter.exportReport();
}
示例5: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/UnicodeReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例6: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/Barcode4JReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例7: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/DataSourceReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例8: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/FormsReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例9: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/FirstJasper.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例10: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/BarbecueReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例11: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/NoReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例12: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/HtmlComponentReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例13: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/QueryReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例14: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/ShapesReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}
示例15: pptx
import net.sf.jasperreports.engine.export.ooxml.JRPptxExporter; //导入方法依赖的package包/类
/**
*
*/
public void pptx() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/StretchReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
JRPptxExporter exporter = new JRPptxExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(destFile));
exporter.exportReport();
System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
}