Jump to content
Changes to the Jaspersoft community edition download ×

rohitahuja123

Members
  • Posts

    4
  • Joined

  • Last visited

rohitahuja123'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. I called the JasperExportManager.exportReportToPdf(jasperPrint) - method and it returned me byteArray.</pre> 1. But what is the output in PdfCopy instance --> its an outStream? :- PdfCopy copy = new PdfCopy(document, output); ????????? 2 . And how will i call my PdfReader for the attachmentReader as PdfReader accepts ByteArrayInputStream? 3. And after getting the 'copy', how we will pass the exportReportToFile method with a jasperPrint object? Thanks.
  2. Thanks Thomas. However when i see the code, i see only these lines that contribute to the output for my jasper report. It creates a file path for the masterTemplate and then compiles it and fill and then finally export the jasperPrint object, so are you talking about the JasperPrint object ? ***************************************************** String masterTemplate = ProductionUtils.createFilePath( config.getSystemProperty( SystemProperty.PATH_KEY ), JRXML_FILE ); jasperReport = JasperCompileManager.compileReport( masterTemplate ); jasperPrint = JasperFillManager.fillReport( jasperReport, parameters, new JREmptyDataSource() ); JasperExportManager.exportReportToPdfFile( jasperPrint, generateLocalFilePath() ); *****************************************************
  3. Hi @AnnMary.Thomas, Did you got to append the c.pdf in your jasper file? I also have the same requirement. Thanks.
  4. Hi There, I want to append a new PDF file before exporting the jasper jrxml to pdf file. Requirement is adding a PDF to second page to the existing jrxml. jasperPrint = JasperFillManager.fillReport(jasperReport, paramters, new JREmptyDataSource); JasperExportManager.exportReportToPDfFile(jasperPrint, generateLocalFilePath()); Thanks.
×
×
  • Create New...