Modifying asset label templates
-
Go to Administration – Asset Management – Print report templates, select Asset label with QR code or Asset label with barcode template and use the Edit command.
-
Download the .html file from the Files section of the form.
-
Open the downloaded .html file in MS Word.
-
Design the label:
- Set the page size and margins to appropriate dimensions of the real label size (i.e. 50 x 25 mm, zero margins).
- Switch the view in the MS Word to Print layout view to see page size and margins.
tipParagraph style in the Word influences everything. We recommend to use No Spacing style, especially if you want to use table for positioning.
-
Insert/edit the QR code / barcode area. The best way is to insert a shape and add a text
[$AssetCode$]into it. -
Insert another static or variable texts if you like (you can use @Node variables for HTML print report templates).
tipFor better positioning, you can insert a table and put the code area / texts into a table cells.
-
When you are done, use the Save as command to save the result. Select the Web page, Filtered format and set the page title to
@Model.PrintTemplateType = AssetLabel -
You can check the resulting HTML file in any HTML editor:
- The TITLE tag should be
@Model.PrintTemplateType = AssetLabel - The code area should be an IMG or DIV tag with
alt="[$AssetCode$]"attribute. - The page size and the margins should be set in the @page CSS style. Or you can insert variables @AssetLabelWidthMm and @AssetLabelHeightMm, if you are using another HTML editor.
- The TITLE tag should be
-
If you placed all label content into a table, it is necessary to remove last paragraph, that MS Word inserted. Look for
<p class=MsoNormal ...> </p>at the end of the file and remove it. Otherwise an empty page will be printed between labels. -
Import the modified HTML file back to the ALVAO and replace the old HTML, or create a new template and import HTML there.