Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts 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
 
Old March 13th, 2007, 11:11 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in report printing

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,






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with printing report from reportviewer Somesh Reporting Services 1 June 30th, 2008 02:14 AM
printing problem in crystal report 8.0 arumugavel Crystal Reports 0 August 28th, 2007 10:33 PM
Crystal Report Printing Problem walmohsin VB Components 3 January 14th, 2007 04:40 AM
Printing crystal report problem sanjivbshinde Crystal Reports 0 November 7th, 2006 07:16 AM
problem in crystal report printing tarun VB Components 1 May 16th, 2005 07:08 AM





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