Jump to content

change filename to be saved in PDF


sreedm

Recommended Posts

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Have a look at the following code.

Hope this helps.

Code:
JasperPrint jasperPrint = JasperFillManager.fillReport("tutorialsMain.jasper", parameters, new JREmptyDataSource(1));		            	            JasperExportManager.exportReportToPdfFile(jasperPrint,"Tutorials.pdf"); //"Tutorials.pdf" will be the name of your PDF		            
Link to comment
Share on other sites

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