Add a logo and company header
Print the company logo and name at the top of a document. The example adds a header to the Invoice template of Alwaha Trading.
Before you begin
- Open the designer from a saved invoice, on a template you may change. See Design an advanced report.
- Keep the logo as a picture file on your computer.
- Decide where the header prints. A Report Header band prints once, at the start of the document. A Page Header band prints at the top of every page. See Report bands.
Steps
-
In the design surface, check that the band you chose exists. If it does not, right-click the report, point to Insert Band and choose Report Header or Page Header.
-
Add a picture control to the band and draw it where the logo will print.
-
Select the picture control. In the Properties panel, click the Image property and choose your logo file.
-
In the same panel, set Sizing so the logo fits its box without distortion.
-
Add a label next to the logo. Select it, open the Expressions tab of the Properties panel and enter
GetDatabaseDescription()as the Text expression. The function returns the description of the open company file. -
Add a second label for the branch. Drag the field
BranchNamefrom the "Bill" table of the Field List (the invoice header) onto the band. -
Click the Preview tab to check the header, then click Save.
Result
Every invoice printed with this template shows the logo, the file description and the branch name of that invoice, for example the logo of Alwaha Trading and the branch Main Branch. The picture is saved with the template, so every user who can see the template prints the same logo. Nothing changes in accounts or stock.
If something goes wrong
| Situation | Why it happens | What to do |
|---|---|---|
| The logo is stretched or cut off. | Sizing does not match the shape of the picture. | Change Sizing, or resize the picture control. |
| The company line is empty. | The company file has no description. | Type the name in the label instead of using the function. |
| The header prints only on the first page. | It is in a Report Header band. | Move the controls to a Page Header band. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.