Jump to content
Changes to the Jaspersoft community edition download ×

printing with applet.jar


Recommended Posts

Hey all, previously I have been using the full jasper.jar file with my client side applets. I used the following code to send all print jobs to the same printer (the code I have a problem with follows)


JRExporter exporter = new JRPrintServiceExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, j1);
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, serv.getAttributes());
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, attribs);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);


This worked fine, unfortunately the jasper jar is over a MB; Here is my problem, using the jasper-applet.jar would be preferable but JRPrintServiceExporter etc are not present in this jar file! Is there a better way for me to do this or should I think about adding the required classes to the applet jar!?



Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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