p35t173nc3 Posted November 21, 2006 Share Posted November 21, 2006 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) Code: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); exporter.exportReport(); 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!? Thanks Link to comment Share on other sites More sharing options...
Teodor Danciu Posted November 27, 2006 Share Posted November 27, 2006 Hi, You should create your own applet jar file and put in it only what you think you need (and all required dependencies). What we ship as an applet jar is what we think would be the minimal required viewer functionality. I hope this helps.Teodor 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