Jump to content
Changes to the Jaspersoft community edition download ×

avery labels


Recommended Posts

I just made an utilty class to print Avery Zweckform labels. Only Zweckform 3483,3655 and 3660 are implemented at this time.



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);


JRDataSource dataSource = AveryHelper.getDataSourceWrapper(orginalDataSource);


return JasperFillManager.fillReport(

jasperReport, params,dataSource);



myPrint = getJasperPrint(orginalDS,orginalJasperFile,

new HashMap<String,String>(),




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

  • 4 weeks later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

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

  • 2 years later...
  • 5 weeks later...

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