augarte Posted October 6, 2010 Share Posted October 6, 2010 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 More sharing options...
fathi Posted October 6, 2010 Share Posted October 6, 2010 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 informationI hope it helps,Fathi Code: Post Edited by fathi at 07/10/2010 11:05 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