mkiranmk Posted October 1, 2007 Share Posted October 1, 2007 Hi, I'm new to Jasper reports. I have gone thru some of the available intro's and tutorial like IBM and devx. In these tutorials the demos are using the following piece of code to generate a report in particular format, say PDF and store it to some location. Code:JasperExportManager.exportReportToPdfFile Is it not possible to just show the report without saving to any location. Because this report is like a status report at any particular time. So any user should be able to just click a link/button to get the current status report. Once the report is generated then it is upto the user wheather he want to save it or just dispose it. How can I achieve this? Your help is appreciated. Thanks. Link to comment Share on other sites More sharing options...
nitin403 Posted October 1, 2007 Share Posted October 1, 2007 Hi mkiranmk.You can use the below code to export your output directly in the user's browser. Code:JasperExportManager.exportReportToPdfStream Link to comment Share on other sites More sharing options...
rathina04 Posted October 1, 2007 Share Posted October 1, 2007 if you are developing web application then you can show that report in html using JRHtmlExporter in jasper,have a look at this url which has sample web applicationhttp://www.jwebhosting.net/servlets/jr123/index.html, same application is available in demo folder of jasper(jasperreports-1.2.7/demo/samples/webapp).Post edited by: rathina04, at: 2007/10/01 06:04 Link to comment Share on other sites More sharing options...
mkiranmk Posted October 1, 2007 Author Share Posted October 1, 2007 Thanks nitin and rathina04 for your quick responses. I will try it and get back to you in case of any issues. Link to comment Share on other sites More sharing options...
mkiranmk Posted October 1, 2007 Author Share Posted October 1, 2007 Hi, Further to this can we have any link in the generated reports. For ex: I have a report of all the list of employees. Now I want to make each of the employee id as a link and upon clicking it should display the employee details in another report. Please help me. Thanks in advance. 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