danif Posted July 5, 2011 Share Posted July 5, 2011 Hi have followed ireport and jasperserver for a while... and i as trying to avoid dirting my hands with jasperreports library, but seems like i have no other choice.What i require is a standalone viewer (cant use jasperserver), something close to ireport but that would work as a viewer only having the possibility to: - Prompt user for parameters - some prompted parameters would be dynamic (example a result from a sql query) - have the ability to export the report into pdf, xls, etc...If there is anything out there that would do this please do tell me. So i started developing a simple standalone viewer using JRViewer to build the report, but JRViewer gets the parameters from a hashmap passed on the constructor. To prompt the user with the parameters from the jasper report i use JasperReport report = JasperManager.loadReport(fc.getSelectedFile().toString());from here i get the list of parameters on the jasper file (with getParameters[]) where i start to design the prompting of the parameters... i have it working for the basic types String, Integer, Date.. but i seems like someone else as already had that troubleIs there any object inside jasperreports that would design the prompting of the parameters ? Thanks in advanced Link to comment Share on other sites More sharing options...
nanndoj Posted July 6, 2011 Share Posted July 6, 2011 I'm doing it as a web application. But I have some problem as well :(jasperforge.org/plugins/espforum/view.php Link to comment Share on other sites More sharing options...
sejweka Posted July 6, 2011 Share Posted July 6, 2011 Download this book: iReport 3.7 by Shamsuddin Ahammadand and read the chapter entitled "how to call jasper report in a java application".I strongly believe it will answer your question about parameter input. Post Edited by sejwekah at 07/06/2011 07:53 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