View Single Post
  #2 (permalink)  
Old April 28th, 2011, 12:38 AM
nagarjunabattula nagarjunabattula is offline
Registered User
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default print should be taken client end unlike server

hey hav u solved this problem it is also an urgent requirement to me.....
please give me answer............

hi ,
am using struts and jasper reports on my project, now i was having problem that whenever i try to print the report , the printer dialogue box was appearing on server machine, i want it on client end, how to solve this problem, please any one know help me, it was urgent,

my code was like this


JasperPrint jasperPrint = JasperFillManager.fillReport("c:/report/test.jasper"),parameters,con);

List l=jasperPrint.getPages();
if(l.size() != 0){
jasperPrint.setOrientation(JasperReport.ORIENTATIO N_PORTRAIT);
JasperPrintManager.printPages(jasperPrint,0,l.size ()-1,true);