Jump to content

Recommended Posts

Posted
if(reportFormat.equalsIgnoreCase("pdf")){

String attachmentFile=reportSaveLoc.trim()+"\"+jrName.replace(".jasper",".pdf").trim();

 

JRPdfExporter exporter = new JRPdfExporter();

JasperExportManager.exportReportToPdfFile(jasperPrint,

attachmentFile);

}

 

 

thanks in advance

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...