nikitha Posted December 31, 2008 Share Posted December 31, 2008 Hi,I have a requirement to get the pdf format report from the java code using jasper reports, i have seen many examples, we have only jasper viewer to view the report from the java program.My requirement, is when i compile a java program, a report has to be viewed in pdf format.The code which i am using is: JasperPrint jprint = (JasperPrint) JasperFillManager.fillReport(jasperFileName, parameters, con);JasperExportManager.exportReportToPdfFile(jprint, pdfFileName);JasperViewer.viewReport(jprint,true)----> here, this line says that to view in the jasper viewer.But, i need to view in PDF format.Please help me. Thanks and Regards,Naveen Link to comment Share on other sites More sharing options...
CaptnTony Posted January 8, 2009 Share Posted January 8, 2009 run acrobat reader as an external call from within java passing the filename as the parameter maybe? 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