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

Printing Reports...


andre2k2

Recommended Posts

I have an application that needs to especify what printer the reports will be print...

But JasperReports just print showing the PrintDialog, or printing with default printer...

There are any way to print with a printer that application chooses?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

There is another way to specify the printer without a dialog. You just should set the JRPrintServiceExporterParameter.PRINT_SERVICE export parameter with informations about your desired printer, and then the print exporter will take into account only that printer.

In addition, if you don't need a print dialog or a page dialog, just set to Boolean.FALSE JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG and JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG parameters.

 

HTH,

sanda

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