Skip Navigation LinksALVAO 11.2 / Admin guide / Custom modifications and extensions / Asset Management customization / Print report templates / Edit REP print report templates
Edit REP print report templates
If you need to edit a REP format print report template, do the following:
- Go to Administration - Asset Management - Print Report Templates.
- Select the desired template and use the Edit command.
- Download all the print report files to any folder on the disk.
- Now, edit the template source files as needed.
- After making any changes, go to the WebApp again and use the Add Files command in the template edit.
- Select the changed files from the folder on disk and overwrite the existing template files with them.
- Save your changes to the template.
Adding a company logo to the header of print reports
- Go to Administration - Asset Management - Print Report Templates.
- For each template, replace the logo.png file with the company logo file. The image should be no more than 100 pixels high.
Note:
The logo is not visible on the screen when the print report is displayed. The logo is only displayed in the print page preview.
Adding the text of the declaration to the handover protocol
In the handover protocol XSL file, search for the string "Declaration Text" and insert your own HTML text after the found note.
Generating barcodes into handover protocols
Open the Internal handover protocol - cumulative.xsl, for example, using Notepad. At the beginning of the code you can find an inactive code segment ("barcode" class).
Uncomment the segment and save the file to activate the barcode generation within the protocol template.
Adjustment of the asset table in the handover protocol
- Edit the XSL file of the handover protocol.
- Find the header of the asset table - look for the text "Asset table - header".
Change column headings, add new column headings if necessary, or remove some columns, e.g.:
<td class="Frame">
<b>IMEI</b>
</td>
- Find the rows with the table values - look for the text "Asset table - values".
Modify the code to get the value in the appropriate column, e.g. change the name of the object property, add values for new columns, or remove values for deleted columns.
Example of one table cell:
<td class="Frame">
<xsl:valueof select="proplist/prop[kind='IMEI']/value"/>
</td>
IMEI is the name of the object property whose value is displayed in the property table.
The values of the table columns must be listed in the same order as the column headings in the table header.
Change margins, paper orientation and page numbering settings
To modify page parameters, in the Administration - Settings - Advanced edit the AssetManagement.TransferProtocol.PageSettings setting value which has the following format:
PageOrientation=Portrait;Margins=10,10,15,15;PageNumbering=0;
Attribute name |
Description |
PageOrientation |
Values:
|
Margins |
Page margins in millimeters in the following order:
<left>,<right>,<top>,<bottom> |
PageNumbering |
Values:
- 0 =off
- 1 = on - page numbers will be displayed at the foot of each page in the format <page number/total number of pages>
|
Did not find what you were looking for? Ask our technical support team.