本文整理汇总了Java中net.sf.jasperreports.engine.export.JRRtfExporter.setExporterOutput方法的典型用法代码示例。如果您正苦于以下问题:Java JRRtfExporter.setExporterOutput方法的具体用法?Java JRRtfExporter.setExporterOutput怎么用?Java JRRtfExporter.setExporterOutput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jasperreports.engine.export.JRRtfExporter
的用法示例。
在下文中一共展示了JRRtfExporter.setExporterOutput方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() 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() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("Report : " + sourceFile + ". RTF creation time : " + (System.currentTimeMillis() - start));
}
}
示例2: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() 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() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("Report : " + sourceFile + ". RTF creation time : " + (System.currentTimeMillis() - start));
}
}
示例3: save
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
@Override
public void save(JasperPrint jasperPrint, File file) throws JRException
{
if(!file.getName().toLowerCase().endsWith(EXTENSION_RTF))
{
file = new File(file.getAbsolutePath() + EXTENSION_RTF);
}
if (
!file.exists() ||
JOptionPane.OK_OPTION ==
JOptionPane.showConfirmDialog(
null,
MessageFormat.format(
getBundleString("file.exists"),
new Object[]{file.getName()}
),
getBundleString("save"),
JOptionPane.OK_CANCEL_OPTION
)
)
{
JRRtfExporter exporter = new JRRtfExporter(getJasperReportsContext());
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(file));
exporter.exportReport();
}
}
示例4: exportRtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
public void exportRtf() throws JRException {
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(this.output
.getAbsolutePath() + ".rtf"));
exporter.exportReport();
}
示例5: getExporter
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
@Override
protected JRRtfExporter getExporter(JasperReportsConfiguration jContext, JRExportProgressMonitor monitor, File file) {
JRRtfExporter exp = new JRRtfExporter(jContext);
exp.setExporterOutput(new SimpleWriterExporterOutput(file));
SimpleRtfReportConfiguration rconf = new SimpleRtfReportConfiguration();
setupReportConfiguration(rconf, monitor);
exp.setConfiguration(rconf);
return exp;
}
示例6: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
protected void rtf(JasperPrint print, String destFile) throws JRException, IOException {
log.debug("exporting to rtf file: " + destFile);
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(print));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
}
示例7: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
private JRRtfExporter rtf(JasperIRtfExporter jasperExporter) {
SimpleWriterExporterOutput exporterOutput = simpleWriterExporterOutput(jasperExporter);
SimpleRtfReportConfiguration reportExportConfiguration = new SimpleRtfReportConfiguration();
reportExportConfiguration(reportExportConfiguration, jasperExporter);
if (jasperExporter.getIgnoreHyperLink() != null) {
reportExportConfiguration.setIgnoreHyperlink(jasperExporter.getIgnoreHyperLink());
}
SimpleRtfExporterConfiguration exporterConfiguration = new SimpleRtfExporterConfiguration();
JRRtfExporter jrExporter = new JRRtfExporter();
jrExporter.setExporterOutput(exporterOutput);
jrExporter.setConfiguration(reportExportConfiguration);
jrExporter.setConfiguration(exporterConfiguration);
return jrExporter;
}
示例8: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/BookReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}
示例9: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() 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() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}
示例10: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/TableReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}
示例11: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/StyledTextReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}
示例12: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/MapReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}
示例13: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/TabularReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}
示例14: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() throws JRException
{
long start = System.currentTimeMillis();
File sourceFile = new File("build/reports/MarkupReport.jrprint");
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}
示例15: rtf
import net.sf.jasperreports.engine.export.JRRtfExporter; //导入方法依赖的package包/类
/**
*
*/
public void rtf() 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() + ".rtf");
JRRtfExporter exporter = new JRRtfExporter();
exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
exporter.setExporterOutput(new SimpleWriterExporterOutput(destFile));
exporter.exportReport();
System.err.println("RTF creation time : " + (System.currentTimeMillis() - start));
}