- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
1. Studio download and installation
JasperSoft is the software used to create its own labels.
- Please take the final version 6.17.0: https://community.jaspersoft.com/community-download
- Download and install the version. For the jaspersoft installation process, see "JasperSoft Installation".
2. Create a label
2.1 Search for XML for testing
Go get an XML to have the attributes that will be on your label.
Here's how to do this:
- Go to " Administration";
- Go to "Manage Printables";
- Then open the "Label Management";
- Open the "Folder Labels" tab;
- Select "Get a test XML file";
- Search for a document or documents in the "Selection of document(s)" and press "Add";
- Tap on "Save";
- An XML file will be downloaded to your computer. You can watch the content of your XML with software like "Notepad++" or simply with a browser.
2.2 Create your label project on JasperSoft studio
- Open the JasperSoft studio;
- Make Files -> New -> JasperReport;
- In the template choices, take Blank Letter. Click "Next";
- Choose the name of your jrxml file and the location of the project in your workspace. Click "Next";
- Create a new adapter;
- In the window of the creation of the adapter, take XML document and click " next ";
- Give a name, choose where the file created in XML in the previous chapter is located and choose the " Xpath expression" option;
- Click " Finish ";
- Scroll down the tree and choose metadata (double click). Click " Next ".
(Or finish if you want all the elements of the XML to be accessible and you don't need the order of the documents to generate the printable).
Click " Next ". - Choose the elements and the element for the order of the documents. Click " Finish ".
2.3 The form of the project on the label
2.3.1 DYMO Printer Label
I take example on a label 1 1/4'' x 2 1/4'' (32 mm x 57 mm)
- Click in a corner of the project;
- In the properties window, go to " Edit pag e format";
- I put the units in " mm ". So 57 mm width, 32 mm height. The margins should be about 5 mm or less (not zero though);
- Press " Ok ";
- Get rid of all tapes except "detail 1".
2.3.2 Label of an Avery sheet
I take example on an Avery 5162 labels 1-1/3" x 4", 14 per page (34 mm x 102 mm)
- Click in a corner of the project;
- In the properties window, go to " Edit Page Size ";
- I put the units in " mm ". The width and height remain in standard blank letter size. The margins should be about 5 mm or less (not zero though);
- Set the display order to " horizontal ";
- Set Columns to " 2 ";
- Tap " Ok ";
- Clear all stripes except " Detail 1 " and " Page Header ";
- " Detail 1 " should be about 34 mm high and " Header " should be about 20 mm. (Click on the tape, the properties are displayed at the bottom right. Appearance will have the height of the strip.)
2.3.3 Label elements
- First, frame the display area of your metadata fields. Use the frame element of the palette;
- Framing it will limit the display borders of the elements in the label. You need to put a display expression too. In " frame property ", put the following line: "$F{id}!=null";
- You put the items that should appear on the document label. You can change the character, place them as you want, etc.;
- Don't forget to save (Ctrl+S) and save your project;
- In the Design window, there is a tab called "Preview". In the preview toolbar, there is a record icon;
Press the arrow next to it to be able to save as optional PDF, Excel, Words, etc.;
2.3.4 Jasper File
- Go to Project -> Build All;
- A Jasper file will be created in your working folder of the labels chosen at the beginning of the project (where the .jrxml project file is located);
- Go to your Constellio. Return to the label management page of a printable document and click " Add Label ";
- Fill in the fields and add the Jasper file;
- Press " Save ".
You can print document labels now.
3. Printing a label
- Consult a document, file or container;
- Click on the actions on the record, then select " Print Label ";
- This page will appear. Choose the starting position of your label, the number of copies, and then the label format of your choice;
- Click on " Generate ". This will generate a PDF page where you can print your label page on the printer of your choice.
Was this article helpful?