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

Select printer for JasperPrintManager


augarte

Recommended Posts

Hi,

I want to know if it is possible to select the printer that we want to use for printing reports with JasperPrintManager. It always sends the jasperPrint to the printer that is configured by default. I have been reading the javadoc( jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperPrintManager.html) but I didn't see any option. There is a property (PROPERTY_CHECK_AVAILABLE_PRINTERS), but don't know how can be used. Does anybody know if this is possible?

Thanks in advance.

Kind regards,

Aitor.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

Yes you can easily select your printer by setting the parameters of the print exporter JRPrintServiceExporter instead of using JasperPrintManager.

You can check the demo file PrintServiceApp.java in the jasper source release for more complete information

I hope it helps,

Fathi

Code:


Post Edited by fathi at 07/10/2010 11:05
Link to comment
Share on other sites

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...