gopimahendar Posted June 24, 2015 Posted June 24, 2015 if(reportFormat.equalsIgnoreCase("pdf")){ String attachmentFile=reportSaveLoc.trim()+"\"+jrName.replace(".jasper",".pdf").trim(); JRPdfExporter exporter = new JRPdfExporter(); JasperExportManager.exportReportToPdfFile(jasperPrint, attachmentFile); } thanks in advance
hozawa Posted June 30, 2015 Posted June 30, 2015 That's great that you're able to display PDF.You really don't need to program to use iReport - just select "Preview" and select "PDF" as the output format. The report should display in pdf format.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now