Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
| Search | Today's Posts | Mark Forums Read
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 13th, 2007, 11:13 PM
Registered User
 
Join Date: Aug 2006
Location: Mangalore, , India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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,

  #2 (permalink)  
Old April 28th, 2011, 12:38 AM
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

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);
}


Similar Threads
Thread Thread Starter Forum Replies Last Post
Report Problem akhilesh_g Pro Visual Basic 2005 3 June 5th, 2008 01:53 PM
Report Problem waleedfaris BOOK: Professional Crystal Reports for VS.NET 0 November 27th, 2007 09:04 AM
Report Problem aranjan Crystal Reports 1 March 9th, 2006 10:26 AM
problem with a report gratnasatish Crystal Reports 0 July 5th, 2005 02:44 AM
Problem In Crystal Report sunil menghani VB Components 1 May 16th, 2005 06:58 AM





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