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

lbaillehache

Members
  • Posts

    1
  • Joined

  • Last visited

lbaillehache's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  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...