andre2k2 Posted July 3, 2007 Share Posted July 3, 2007 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 More sharing options...
arunvishvin Posted July 3, 2007 Share Posted July 3, 2007 Use a scriptX to direct your print to a particular printer or there are many ways just go through the forum once you will find lots of posts without using scriptX Link to comment Share on other sites More sharing options...
szaharia Posted July 3, 2007 Share Posted July 3, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now