Jump to content
We've recently updated our Privacy Statement, available here ×

lbaillehache

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by lbaillehache

  1. Hello I use a JRDataSource, to print an invoice in a state no problem, but I want to print several invoices in the same state, my JRDataSource contains the list of different beans to be sent to the jrxml, but no way to print invoices In the same pdf. If someone has an idea, an answer? Thank you. this is my Java code : // Compilation du fichier jrxml JasperReport jasperReport = JasperCompileManager.compileReport(inputFile); // Recuperation de la datasource JRDataSource beanCollectionDataSource = new JRBeanCollectionDataSource(jasperRessource); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, beanCollectionDataSource); // Exporteur du format pdf JRPdfExporter exporter = new JRPdfExporter(); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); // On fixe la source de sortie du pdf. exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(pOutputStream)); SimplePdfExporterConfiguration configuration = new SimplePdfExporterConfiguration(); exporter.setConfiguration(configuration); exporter.exportReport();
×
×
  • Create New...