sreedm Posted August 26, 2008 Share Posted August 26, 2008 I am exporting the report in PDF. I want to change the filename that appears on the dialog box when we click "save" on pdf.Thanks in advance. Link to comment Share on other sites More sharing options...
jreporter Posted September 17, 2008 Share Posted September 17, 2008 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 More sharing options...
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