Print Layouts
E-Register offers the convenient feature of print layouts, allowing users to export register entries in various layouts and formats, with customizable options. Users can choose from three types of print layouts: text editor, word document, and code (Pug template).
Text Editor
Users have the flexibility to customize the text using various editing options available in the editor, such as color, font, bold, and underline. Additionally, they can insert variables from the register using hashtags. When a '#' is typed, a dropdown appears displaying the register fields. After the user clicks on a field, it is displayed in blue, indicating it has been selected. These features make it easy for users to personalize their print layouts according to their preferences. The Insert option can be used to add an image or a table.
Word Document
Users can also upload Word documents as print layouts. Here are some points to keep in mind when creating a dynamic print layout using a Word document:
- Enclosing Variables: All variables should be enclosed between '{#' and '#}'.
- Adding Loops: Use the FOR/END-FOR commands to add loops, which support table rows with all field variables referenced with $ and beginning with the INS keyword.
- Inserting Images: To add an image, use the IMAGE keyword along with the field variable enclosed in a getImage() function.
- Inserting Amounts: For adding amounts, use the INS keyword along with the field variable enclosed in a getAmount() function.
- Inserting Dates: To add a date, use the INS keyword along with the field variable enclosed in a getDate() function.
Code(Pug Template)
Pug is another template engine supported by E-Register. Users can enter the Pug code in the provided editor. The Pug format is similar to HTML, and variables should be enclosed within #{
and }
, in the format #{variable}
. For detailed documentation on Pug, users can refer to Pug's Getting Started Guide.
How To Create a Print Layout?
Step 1: Click on the Print Layouts icon in the register of your choice.
Step 2: Click on the Add Layout button.
Step 3: Click on the most suitable layout type as per your requirements.
Step 4: Use the provided editor to enter the layout template, give it a name and click on 'Save'.
How to Use a Print Layout?
Step 1: Go to your chosen register entry and click the Print Layout button.
Step 2: Select the layout of your choice and click 'Confirm'.