Standard Printing

AvantGard Trax has a 'Print' action that is commonly available in various workflows and that generates an HTML page for printing purposes. The same function is also used when creating html output using the embedded query builder in AvantGard Trax.

Note that when printing an object that has slave relations and those slaves have other slaves (e.g. rule sequence, security profile, menu,...), these last ones will result in an empty column.

Modifying the Stylesheet

The first step is to modify the style sheet which is used by Trax to generate the html output. This style sheet is part of the Trax build. For the template project it is part of the 'template.ear' file. In the standard JBOSS template project, the ear file can be found in the following path: \server\default\deploy.

In this directory, you will find the template.ear file. Open this ear file using eg winrar will result in the view below:

Figure 71 template.ear

Open the APP-INF folder and subsequently select the lib folder. In this folder, select the 'generics.jar' file and click on the 'View' icon. The style sheet that needs to be updated is called template.html.xsl. Drag and drop the style sheet on the desktop or on the file system and open it in an xml editor.

Figure 72 generics.jar

File 71 template.html.xsl

Go to the xml tag called 'img'.

First, change the width and the height parameters to the number of pixels of your logo file. You can see this in the file explorer by selecting properties to see the dimensions.

Secondly, refer to the file name of the image file containing the logo. In this example, the file name is 'ps.png'.

Adding the Image file

Open the template.ear file again using winrar and select the webstart.war file. Click on 'view' icon in the winrar menu tool to open the webstart.war file. Add your logo file (in our example ps.png) to this archive by adding the file which is case sensitive. The name should match the one given in the style sheet.

Figure 73 Adding Image