rohitahuja123
-
Posts
4 -
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
Posts posted by rohitahuja123
-
-
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() );
*****************************************************
-
Hi @AnnMary.Thomas,
Did you got to append the c.pdf in your jasper file? I also have the same requirement. Thanks.
-
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.
How to attach a .pdf file to a generated Jasper report
in Products
Posted
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.