How do I change the design of an invoice?
The look of the paper —where the logo goes, which columns the body has, what it says at the foot— lives in the document layout. It is all done in Reports → Print layouts: that is where you choose the document, see its layout, design it, copy it to other documents and decide which one is printed.
What do I need before I start?
To know what you are going to change. Changing the design of an invoice means drawing a new sheet (or a copy of the one you have), not editing the one that is printed today on the fly.
And to decide whether the new sheet is going to replace the one printed today or be an alternative chosen document by document. You can do both, but they are separate actions.
If all you want is to choose between layouts that already exist, you don’t need this page: Choose which layout a document is printed with.
Where are my layouts?
Go to Reports → Print layouts. At the top there is a notice with the three steps; you hide it with the ×.
On the left is the tree of your documents, grouped by area (Sales documents, Purchase documents, Warehouse stock movements…). Each document shows next to it how many layouts it has. Clicking it opens out its sheets:
- Default (in green) marks the one that is printed.
- Yours marks your company’s sheets; the rest are the factory ones.
The Search document or layout… box filters the tree by the name of the document or the sheet.
When you choose a sheet, on the right you see what the paper looks like: a small view with its boxes, lines, texts and the label of each data field. It is the design, without data from any document.
How do I draw a new layout?
- In the tree, click the document you want (for example, ‘Direct sales invoice’).
- Click Design a new one. The Layout editor opens blank, already linked to that document.
- Drag the fields from the palette on the left onto the canvas. You find them with the Search field… box, and they are grouped into Company, Customer, Document, Lines, Batch, Totals and Other.
- Adjust each element in the panel on the right: X, Y, Width, Height, Text colour, Size, Bold, Italic…
- Type a name in the Layout name box.
- Click Save. The button changes to Saved.
To start from a layout that already exists, choose the sheet in the tree and click Design. It also works with the factory ones and with the ones you bring over from Powergest Desktop: the canvas opens with their elements already placed in the header, body and footer. Inside the editor, the two buttons in the middle of the bar are New layout and Load layout….
To go back to your layouts from the editor, click ← Print layouts, at the very top.
How do I make all my documents look the same?
Design one carefully —for example, the invoice— and copy it to the others:
- Choose the sheet in the tree.
- Click Copy to other documents….
- Tick the documents you want to have it: delivery note, order, quote…
- If you want it to be the one printed for all of them straight away, tick Make it the layout printed for those documents.
- Click Copy to N document(s).
Each document gets its own copy, with the same design. Afterwards you can touch up each one separately (for example, removing the prices from the delivery note) without the invoice’s one changing.
Can I choose the layout without leaving the editor?
Yes. In the editor bar, the Load layout… button opens the same tree (only with document layouts; reports have their own designer). From the tree you can:
| Button | What it does |
|---|---|
| Open on the canvas | Loads the selected sheet for editing |
| Duplicate | Creates a copy in the same document. It is the safe way to experiment |
| Delete | Removes the sheet, with the same safeguards as in Print layouts (it asks for confirmation and explains refusals) |
| Design new | Opens a blank canvas under the selected document |
To copy to other documents or mark a sheet to be printed, go back to Print layouts; the selector itself has a link.
How are things placed on the paper?
The canvas has a dotted blue rectangle in the middle. That rectangle is the body: the area that is repeated once for each line of the document.
Each element’s band is worked out from where you drop it:
| Where you put it | Band | When it is printed |
|---|---|---|
| Above the rectangle | Page header | Once per page, at the top |
| Inside the rectangle | Body (Data) | Once for each line |
| Below the rectangle | Page footer | Once per page, at the bottom |
The panel on the right shows the band of the selected element, but you don’t change it there: you change it by moving the element. The rectangle itself can be dragged and stretched so that the body takes up more or less paper.
The company and customer details go at the top, the Lines fields inside the rectangle and the Totals at the bottom.
What can I add besides fields?
In the Tools bar there are five elements that you drag just like fields: Rectangle, H line, V line, Image and Table.
Two important warnings:
- The Table tool can be placed and configured, but it doesn’t reach the PDF: it is left out when printing.
- The Image tool only reaches the PDF if its Image URL is a short address. An image chosen with Browse image… is embedded in the design and is lost when printing. For the logo, use the Logo field in the Company group, which does work.
For the rest of the work there is what you would expect: grid and snapping (Grid and Snap tick boxes, with the snapping Step in pixels), undo and redo with ↶ and ↷, zoom with −, +, the percentage (click = back to 100 %) and ⤢ (fit the page to the view), and layer order with ⤓ Send to back, ▽ Send backward, △ Bring forward and ⤒ Bring to front. The page appears centred when it opens; you pan the view by holding down the right mouse button.
Selecting several elements with Ctrl+click brings up the commands to align, distribute and match size. The size is matched to the first one you selected.
How do I change the text of a label?
In the panel on the right, in Text (a printed label, such as ‘INVOICE’) or in Label (the caption of a field brought over from Powergest Desktop). It is saved when you leave the box.
A double click on the box on the canvas takes you straight to that box. You don’t type the text on the canvas itself: that way it can’t be deleted by accident.
Why doesn’t a field show its formula?
Because the canvas imitates the paper and the editor is designed for people who aren’t technical. Each field has three names:
| Name | Example | Where you see it |
|---|---|---|
| Short label | ‘Total’ | Inside the field’s box, on the canvas. If it doesn’t fit, it is cut short |
| Name | ‘Document total’ | As Title in the properties panel |
| Description | ‘Total amount of the document’ | Only in the properties panel |
None of the three shows the formula. Each field is a pastel blue box of the real size it will take up when printed. A fixed text (a printed label, such as ‘INVOICE’) has no blue box, with its real font. The lines and rectangles of the design are the only ones with a marked outline: they are the ones that get printed.
If a field is only printed on some documents (for example, a text that depends on the payment method), its label is what it prints and its description warns you: ‘Only printed when it applies to the document’.
The formula only appears if you turn on Technical mode, at the bottom of the panel. Then, at the end of the panel, the Technical mode section is added with the field’s Formula (or the QR content). That section always goes last and pushes things down: it doesn’t cover anything. If a formula is long, drag the left edge of the panel to widen it; the width you choose is remembered in your browser.
Why does it select what it selects?
The click goes first to the field or label under the pointer; if there isn’t one, to the nearby line; and lastly to the rectangle. The dotted blue rectangle of the body is underneath everything: you pick it up by its dotted edges in an empty area.
Moving and resizing snaps in jumps of the Step (4 px by default, a little over 1 mm; lower it to 2 for fine-tuning or untick Snap). The Grid tick box draws a paper grid: a line every 5 mm and a stronger one every centimetre, which follows the zoom. It is for measuring and aligning; it doesn’t depend on the Step.
How do I make the invoice come out with my new layout?
Saving the design doesn’t by itself change what is printed. The new sheet goes in as one more variant of the document.
To make it the standard one: in Print layouts, choose the sheet and click Use as default. From then on it carries the Default mark, and every document that doesn’t choose a layout will come out with it.
The other option is to leave it as an alternative and choose it document by document with the invoice’s Layout drop-down.
A sheet of your company’s marked as default overrides the factory one for the same paper. The factory layouts aren’t lost: they are still there in case you need to go back.
Can I see how it looks before printing?
In Print layouts, when you choose a sheet you see the paper in small: where each thing goes and what data each box carries. It has no data from any document.
To see the result with data you have to issue or print a real document with that layout from Sales. In the editor you can use View JSON, which shows the raw design, and Download JSON / Import JSON, which are for taking a design from one installation to another.
In the editor you don’t choose the paper size, orientation or margins. The paper is the layout’s own: A4 portrait, or landscape if the layout is (one brought from Powergest desktop that printed in landscape there, or one you set to Landscape in Page orientation). The editor and the layout preview show the page already turned, as it will print.
What else can I do with a sheet?
When you choose it in Print layouts:
| Button | What it does |
|---|---|
| Design | Opens it in the editor |
| Use as default | Makes it the one printed for its document |
| Copy to other documents… | Takes the same design to other documents (see above) |
| Duplicate | Makes a copy in the same document. It is the safe way to experiment |
| Rename | Changes the name and description of the sheet |
| Delete | Removes the sheet, if it can be done (see below) |
Before touching the layout the whole company invoices with, Duplicate it and work on the copy.
How do I make a sheet print in landscape or portrait?
When you choose the sheet in Print layouts, Page orientation is under its name:
- The layout’s own —how it comes— prints with the orientation it was designed in. A layout brought from Powergest desktop keeps its own: if it came out landscape there, it does here too.
- Portrait or Landscape turns the page when printing, without touching the design.
The change is saved as soon as you choose it and applies to the next printout. Duplicate and Copy to other documents… take the orientation with them too.
Turning the page doesn’t move what is on it: a design made for portrait, put in landscape, stays where it was and may not fit. Use it to correct the orientation, not to change the design.
Why won’t it let me delete a sheet?
Because deleting it would leave something broken. The screen doesn’t delete silently: it tells you the reason and what to do first. There are two cases.
**The sheet is pinned by documents.** A document already issued expressly asked for that layout. If it disappeared, those documents would be left without the paper they were printed with.
**It is the one used by default and its document has more sheets.** Deleting it would leave the document with no default one, and then it wouldn’t know which layout to come out with. First mark another sheet with Use as default, and then delete.
A sheet that isn’t in either of the two cases is deleted straight away.
Can I bring over my layouts from Powergest Desktop?
Yes, all at once:
- Click Import from Powergest desktop, at the top right.
- Click Choose the Powergest desktop folder and choose the programme folder, usually
C:\ifswin. Your layouts are taken from it (those inESPWIN) along with their images (those inBMP). Choosing justC:\ifswin\ESPWINalso works. The browser will ask you to confirm that you want to upload it and will count all its files, but only the ones that are needed are sent. - You will see the list of your layouts, each with its tick box, the document it will go to and the files it will use. The ones that can be brought over are already ticked. Untick the ones you don’t want.
- Click Import. Each layout goes only to the document that matches its name.
You don’t need to look for anything else. ESPWIN usually only holds the page layout of each format (the .FRM). Its definition (the .LSW) is picked up on its own: yours if it is in the folder, and if not, the standard one from Powergest Desktop (the one in C:\ifswin\LSTWIN, which already comes with the programme).
ESPWIN also holds the definitions of your reports. Those are not uploaded and don’t appear in the list: only the definition of a document whose page layout is in the folder is uploaded.
If a layout doesn’t have its own definition, it uses the one from layout 1, just as Powergest Desktop does.
The .INC files in the folder are uploaded too: they hold data of your own layouts, such as the IBAN printed next to «Nº CUENTA» at the foot of the invoice. If a value like that comes out blank in a layout you brought over earlier, bring that layout over again with the whole ESPWIN folder.
The item lines come out as in Powergest Desktop: if there was a rule under each item there, there is one here too.
The ones that can’t be brought over appear in the list without a tick box, with the reason in a few words. The layouts brought over are yours and don’t change what is printed, except one per document: the one with the number your Powergest Desktop used to print with. If your data comes from there, the programme knows that number (in the list it appears as ‘will be printed by default, as on the desktop’), and that layout becomes the one that is printed. For example, if you used to print with layout 7, your invoices come out with FAC7. To use another one, open it and click Use as default.
What about the logo on my layouts?
It is brought over with the layout. Powergest Desktop keeps the logos in its images folder, usually C:\ifswin\BMP. When the layout doesn’t say which image it has, it prints LOGO.BMP from that folder, and the same happens here.
If you choose C:\ifswin, the logo is picked up on its own from its BMP folder: only the images that are needed, not the item photos. If you choose ESPWIN, the one in it is picked up. If it still can’t find it (for example, because your Powergest Desktop keeps its images in another folder), the list warns you with ‘Its image … is missing…’ and Choose the images folder appears: choose that folder. If you bring it over without the logo, the result says so next to the layout.
Why are there blank boxes and dates with a two-digit year?
Because that is how Powergest Desktop prints, and the layouts that come from there —the standard ones and the ones you bring over— look the same:
- A quantity, a price or an amount at zero is left blank. On a text-only line, no ‘0,00’ appears.
- Dates come out with a two-digit year:
15/10/26.
Layouts you had already brought over before stay as they were: bring them over again to see them this way. What you design in the editor doesn’t change.
What appears in the footer when an invoice has several VAT rates?
One row per rate. If you sell 500 € at 21 % and 300 € at 10 %, the box in the footer shows:
| Tax base | % | VAT amount |
|---|---|---|
| 500,00 | 21,00 | 105,00 |
| 300,00 | 10,00 | 30,00 |
and next to it the Total, 935,00. With a single rate the footer comes out as usual, in one row. The equivalence surcharge (RE) also goes by rate.
That is how all the standard layouts come out, and the ones you bring over from Powergest Desktop with a single-row footer. Up to five rates fit; the more there are, the smaller the footer font.
In the editor you see one box per column (‘Base’, ‘%’, ‘Tax amount’…), as on paper with a single rate. The rows for the other rates are hidden and follow their box: if you move it, widen it or change its font or colour, the breakdown changes with it. When you select it, the panel reminds you.
What happens if a line’s description is longer than its column?
It is cut off when it reaches the column’s rule, with an ellipsis at the end. It never runs over the next column. A figure that doesn’t fit, such as a large quantity, is printed in a slightly smaller font, but always in full and on a single line.
In the standard layouts and in the ones you bring over from Powergest Desktop, each line field takes up its whole column: the description reaches as far as the discount column, even if in Powergest Desktop the field’s box was narrower. If you want a description to fit in full, widen its column in the editor.
Where do the free text and the text of the lines print?
The document’s free text and the text of each line print in any layout without you doing anything: the line’s text, below the line; the document’s text, after the last line. Both go under the description column and in its font.
If you want another width or another font, the palette has, under Formatted text, the fields Document free text and Line text. Drag the one you want onto the canvas: the box marks where the text starts, how wide it is and in which font and size it prints. The height of the box doesn’t count: the text takes as much room downwards as it needs and continues on the next page. The bold, the italics and the lists are the ones written in the document.
The line’s text always prints below its line, and the document’s text after the last one: the box doesn’t change that order. With no text written, the box prints nothing.
What about a header detail that doesn’t fit in its box?
The same happens with any detail on the document, not just with the lines: the sales agent’s name, the payment method, the address… A long detail is cut off, with an ellipsis, when it reaches the rule of its box, the edge of its frame or the next detail. It is never written on top. If there is nothing to its right, it comes out in full. The fixed texts you put in yourself, such as ‘AGENT’ or ‘DATE’, aren’t cut off.
A detail with its own background or border and room for a single line —the customer name with a white background in some formats from the desktop ERP— always comes out on one line inside its box: if it’s slightly too long, in a slightly smaller font; if it’s much too long, cut off. It is never split in two on top of the detail below.
If something goes wrong
| What you see | What has happened | What to do |
|---|---|---|
| ‘That sheet has no design yet: draw one and save to give it one.’ | The sheet is empty | Draw the design; when you save, it stays in that same sheet |
| ‘This layout has no design yet.’ in the view | The sheet is empty | Click Design |
| ‘There are no documents with a layout yet.’ | The catalogue is empty | Tell whoever administers the ERP |
| I saved the design and the invoice comes out the same | The new sheet isn’t the one used by default | Click Use as default, or choose it on the document |
| It won’t let me delete a sheet and gives me a reason | It is pinned by documents, or it is the one used by default and has sister sheets | Do what the reason says |
| ‘The canvas could not be drawn.’ | The editor couldn’t draw the paper, not even on the second attempt | Click Redraw. Your layout hasn’t been lost |
| The table I drew doesn’t appear in the PDF | The Table tool doesn’t reach the paper | Draw it with H line, V line and fields |
| The image I added doesn’t appear in the PDF | It was embedded in the design instead of being referenced | Use the Logo field in the Company group |
| When printing a document, ‘The document PDF could not be generated…’ appears | The design of that sheet can’t be laid out | The message gives the reason. Go back to the previous sheet or to the factory one to get by, and fix the design on a copy |
| A field’s underline doesn’t come out when printed | Underlining isn’t carried over to paper | Use bold, or an H line underneath |
| ‘Its page layout (.FRM) is missing…’ or ‘…its definition (.LSW)…’ when bringing over layouts | That file isn’t in your folder or among the standard ones | Tell support, with the layout’s name |
| ‘There are no layouts in that folder’ | The chosen folder isn’t the layouts folder | Choose Powergest Desktop’s ESPWIN folder |
| ‘We don’t know which document it belongs to…’ when bringing over layouts | Its name isn’t that of any print layout | Tell support, with the file name |
| ‘It has something we can’t convert yet…’ | That layout uses something that isn’t translated yet | Tell support; in the meantime, draw it in the editor |
| ‘Its image LOGO.BMP is missing…’ when bringing over layouts | The logo is in Powergest Desktop’s images folder | Click Choose the images folder and choose C:\ifswin\BMP |
| No layout appears with ‘will be printed by default’ | The programme doesn’t know which number you printed with: your data wasn’t brought over from Powergest Desktop | Bring over the layouts and click Use as default on yours |
See also: Choose which layout a document is printed with · Where each report is · Issue an invoice
More about Reports
- How do I group and total a report?
- How do I see what share of the year’s sales falls in a period?
- How do I create a custom report?
- Where is each report?
- How do I choose which layout a document is printed with?
- How do I export a report to Excel?
- How do I print labels?
- Running reports and formatting documents
- The standard reports in each area
- How do I run a report?