Jump to content
We've recently updated our Privacy Statement, available here ×

Print jasper report goes to server printer


Recommended Posts

By: Kuldip Shah - kuldipshah

Print jasper report goes to server printer

2006-02-08 09:32

When I am using JasperPrintManager.printReport() to print report directly to printer, instead od going to client's default printer, it goes to server's printer. I had same problem when opening print dialog box.

 

This is big problem because in live situation, server is hosted in co-location and client does not have access to server's network.

 

Why it is going to server and not client printer? Is it design problem?

 

My code is as follows:

 

JasperPrint jasperPrint=null;

JRDataSource dataSource = new BSTCustomReportVectorDataSource(fieldNames, reportVector);

JasperDesign jasperDesign = JRXmlLoader.load(JRXMLFile);

JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);

jasperPrint = JasperFillManager.fillReport( jasperReport, reportParameters,dataSource );

boolean displayPrintDialog = false;

jasperPrint.setName(reportName);

printSucceed = JasperPrintManager.printReport( jasperPrint, displayPrintDialog);

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...