sray Posted May 1, 2007 Share Posted May 1, 2007 I need to print the report from client's printer. It is needed that the report will be generated from .jrxml file but will not be filled to any File in client PC, rather it will directly go give a prient comand to the printer at clients end. I need urgent assistance.Thank you Sourav Link to comment Share on other sites More sharing options...
krishnamurthi Posted October 1, 2007 Share Posted October 1, 2007 Hi, InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("test.jasper");JasperPrint jasperPrint = JasperFillManager.fillReport(inputStream,null, new JRBeanCollectionDataSource((Collection) lstTest));JasperPrintManager jasperPrintManager = new JasperPrintManager();jasperPrintManager.printReport(jasperPrint, true); I belive that, this may help u. thanksKrish. 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