p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   J2EE (http://p2p.wrox.com/forumdisplay.php?f=94)
-   -   problem in report ptrinting (http://p2p.wrox.com/showthread.php?t=55348)

dgmanu March 13th, 2007 11:13 PM

problem in report ptrinting
 
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

Code:

JasperCompileManager.compileReportToFile("c:/report/test.jrxml","c:/report/test.jasper");

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


List l=jasperPrint.getPages();                   
if(l.size() != 0){
  jasperPrint.setOrientation(JasperReport.ORIENTATION_PORTRAIT);
  jasperPrint.setPageHeight(877);
  jasperPrint.setPageWidth(963);
  JasperPrintManager.printPages(jasperPrint,0,l.size()-1,true);
}

thanks in advance,


nagarjunabattula April 28th, 2011 12:38 AM

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

Code:
JasperCompileManager.compileReportToFile("c:/report/test.jrxml","c:/report/test.jasper");

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


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


All times are GMT -4. The time now is 06:04 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.