当前位置: 首页>>代码示例>>Java>>正文


Java SimplePptxReportConfiguration类代码示例

本文整理汇总了Java中net.sf.jasperreports.export.SimplePptxReportConfiguration的典型用法代码示例。如果您正苦于以下问题:Java SimplePptxReportConfiguration类的具体用法?Java SimplePptxReportConfiguration怎么用?Java SimplePptxReportConfiguration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SimplePptxReportConfiguration类属于net.sf.jasperreports.export包,在下文中一共展示了SimplePptxReportConfiguration类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: pptx

import net.sf.jasperreports.export.SimplePptxReportConfiguration; //导入依赖的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));
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:25,代码来源:ScriptletApp.java

示例2: getExporter

import net.sf.jasperreports.export.SimplePptxReportConfiguration; //导入依赖的package包/类
@Override
protected JRPptxExporter getExporter(JasperReportsConfiguration jContext, JRExportProgressMonitor monitor, File file) {
	JRPptxExporter exp = new JRPptxExporter(jContext);
	exp.setExporterOutput(new SimpleOutputStreamExporterOutput(file));

	SimplePptxReportConfiguration rconf = new SimplePptxReportConfiguration();
	setupReportConfiguration(rconf, monitor);
	exp.setConfiguration(rconf);

	return exp;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:12,代码来源:ExportAsPptxAction.java

示例3: pptx

import net.sf.jasperreports.export.SimplePptxReportConfiguration; //导入依赖的package包/类
private JRPptxExporter pptx(JasperIPptxExporter jasperExporter) {
	SimpleOutputStreamExporterOutput exporterOutput = simpleOutputStreamExporterOutput(jasperExporter);
	SimplePptxReportConfiguration reportExportConfiguration = new SimplePptxReportConfiguration();
	reportExportConfiguration(reportExportConfiguration, jasperExporter);
	if (jasperExporter.getIgnoreHyperLink() != null) {
		reportExportConfiguration.setIgnoreHyperlink(jasperExporter.getIgnoreHyperLink());
	}
	SimplePptxExporterConfiguration exporterConfiguration = new SimplePptxExporterConfiguration();

	JRPptxExporter jrExporter = new JRPptxExporter();
	jrExporter.setExporterOutput(exporterOutput);
	jrExporter.setConfiguration(reportExportConfiguration);
	jrExporter.setConfiguration(exporterConfiguration);
	return jrExporter;
}
 
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:16,代码来源:ExporterTransform.java


注:本文中的net.sf.jasperreports.export.SimplePptxReportConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。