dencel Posted July 31, 2006 Share Posted July 31, 2006 I just made an utilty class to print Avery Zweckform labels. Only Zweckform 3483,3655 and 3660 are implemented at this time. Usage:Drop the binary jar in the zipfile in your classpath and use the code like this: ========public JasperPrint getAveryPrint(JRDataSource orginalDataSource,String orginalReportFile,Map params,FormType formType) throws JRException{ JasperReport jasperReport = AveryHelper.getReportWrapper(formType); params.put("AVERY_REPORT_ELEMENT",orginalReportFile); JRDataSource dataSource = AveryHelper.getDataSourceWrapper(orginalDataSource); return JasperFillManager.fillReport( jasperReport, params,dataSource);} myPrint = getJasperPrint(orginalDS,orginalJasperFile,new HashMap<String,String>(),AveryHelper.FormType.ZWECKFORM_3483);======== The forms are not extensively tested, so it may require tuning. You can simply adjust the reports in the sources. If you need help message me. JDK 1.5 coded. [file name=avery.zip size=55013]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/avery.zip[/file] Link to comment Share on other sites More sharing options...
lpaustia1 Posted August 23, 2006 Share Posted August 23, 2006 I'm having difficulty with your instructions. I downloaded the zip file. There are two binary files rather than one, AveryReports.jar & Avery Reports-Sources.Jar. You indicate to "Drop the binary jar in the zipfile in your classpath". Are these two jar files to be added to the Jasper Report Classes and the environment variable classpath updated to refer to the location of them? You also included code to apparently call those two jar files to print the report in the prescribed label format. Where would you place this code? Or is it another export class like a PDF or Excel File? I'd have a proiject where I could use something like this because it would be reuseable. Kind of surprised JR does not have a label routine built in. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted August 23, 2006 Share Posted August 23, 2006 Hi, Can you post this as a patch in the patches area, so that we can track it better and eventually include it in the main version? Thank you,Teodor Link to comment Share on other sites More sharing options...
iscribble Posted April 7, 2009 Share Posted April 7, 2009 The download seems to have been removed... did this ever make it into the patches area? I can't find any more record of label integration into Jasper. Link to comment Share on other sites More sharing options...
lucianc Posted April 8, 2009 Share Posted April 8, 2009 I don't see any patch related to this.I have loged a bug on the JF.org trackers, hopefully we'll be able to recover the attachment.Regards,Lucian Link to comment Share on other sites More sharing options...
lucianc Posted May 8, 2009 Share Posted May 8, 2009 The issue with the attachments has been fixed, it can be downloaded now.Regards,Lucian 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