Design an advanced report
In the advanced report designer you design the look of the printed document: you arrange fields, text, tables and pictures, and save the result as a template that users choose when they print. The example designs a template for the sales invoice in the Alwaha Trading file.
Before you begin
- Turn on the option Print bills using advanced reports in Program Options > Display. For documents other than invoices, use the option that fits them: see Print documents with advanced reports.
- Open the designer from a saved document so the designer shows its real data. The data source reads the saved document that you opened the designer from.
- The designer does not open from the Advanced Reports Management window. For points of sale and restaurants it opens from the Design ... button in the print settings, where no document is selected, so the design relies on the structure of the data.
- Users see the template if you tick Shared when you save. If not, it stays yours alone.
Steps
Open the designer
-
Open a saved sales invoice, such as invoice no. 5, and click Print. The Print window appears.
-
To edit an existing template, choose it in the Template list. To start a new template, change nothing. Then click Design.
The designer opens maximized. If you chose a template, it opens. If not, a new empty report named "Invoice 1" opens.
Start a new report (optional)
-
Click New... in the Report group to start a new report. If the designer has unsaved changes, the program asks "The document has been modified. Do you want to save the changes?": click Yes to save them or No to leave them.
-
Choose Blank Document to start from scratch, or a ready template from the service, then click Ok. (Or double-click the card.)
If you chose a ready template, it downloads first. You can stop the download with the Cancel button. The template opens in the designer as a new report that is not saved yet.
Design
- Open the Field List. It holds the fields of the data source
CurrentDb, group after group (customer, currency, store, branch, user, the invoice and its items, and more). Type part of a field name in the search bar to find it, such asAddressto reachBill_Customer_Address. - Drag the field to the band you want in the report. Insert text, tables, pictures, barcodes and shapes from the Home tab, then arrange them and change their fonts and borders as in any report designer.
- To format a value by the program options, write a function from the Al-Ameen category around the field in the expression of the text box.
ToPricesets the decimal places for prices,ToQuantityfor quantities,ToDatethe date format,ToBalancethe balance display, andNumberToTextwrites the amount in words for the currency. The functions are explained in Al-Ameen functions. - To place another report inside this one, insert a subreport, select it, click the browse button in the Template box in its smart tag, and choose the template in the Select Template window.
Change the data source
- If the document type has more than one data source in the file, the Change Data Source button appears in the Data group. Click it and choose the source from the list, and the program replaces the current source with it. The button does not appear if there is only one source.
Preview and save
-
Click the Preview tab to see the report with the document's data. Change what you need and go back.
-
Click Save. If the report is new (or you clicked Save As...), the Save As window appears.
-
Type the Name, such as
Sales Invoice with Logo. Tick Shared so the other users can see it. Tick Right-to-Left Layout so the report prints in that direction. Then click Ok. -
Close the designer.
You return to the Print window, where the new template is added to the Template list and selected. Click Preview to see it, or Print.
Result
The template is saved in the file and is yours. It appears in Advanced reports management and in the list of templates when this type of document is printed. The program creates a thumbnail from its first page on every save. If you ticked Shared, every user of the file can see it, print with it and edit it. Nothing changes in accounts or stock.
You can export the template to a file with the Export button in the Report group, to move it to another file.
If something goes wrong
| Message or situation | Why it appears | What to do |
|---|---|---|
| The template name is already in use. Choose another name | Another template of the same type uses the name. | Type another name. |
| A message with an error text, and the designer closes on opening | The data source or the report could not be created. | Read the text. Check that the data source for this type exists in your file. |
| Only the Blank Document card appears in the New window | There is no connection to the online template service, or no templates were published for this type. | Start with Blank Document. |
| New Report or Open... do not work | The program's template storage does not allow them. | Click New... to start a report, and to open an existing template open the designer from the Print window and choose it. |
| The Change Data Source button does not appear | The document type has only one data source. | Nothing. The button appears when there is more than one source. |
| I cannot find the command I need, such as adding a parameter | The program removed the commands that change the data source and its parameters. | See What the program removed. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.