Print designer
The print designer is the window where you draw the layout of a printed document, such as a bill, a voucher or a cheque. It works like a word processor: a page with a size and margins, text, tables and pictures. You add fields from the program to the page, for example the bill number, the customer name and the bill lines. The program fills them with data when it prints. It saves the design under a name in the database, and the print and preview windows let you pick it.
For the working steps see Design or change a print template. The dialogs that open from the designer are in Print designer dialogs.
Opening the window
The window opens maximized and is a dialog: you cannot work in the main window until you close it. Its title is the name of the open design. A new design is named Design1, then Design2 for each further new design you start in the same window.
| From | What happens |
|---|---|
| The Design button in the print windows of bills, vouchers, cheques, notes and other documents, and in the print settings windows of point of sale and restaurants | Opens the design chosen in that window. Bill example: Bill Pickers and Print Dialogs. Point of sale example: Print Design Settings. |
| The Design button in the print preview window | Opens the design you are previewing. |
| Manage print designs | From the ribbon: Management > Procedures > Manage Print Designs. |
- If the designer opens with no design chosen, the File menu opens on New so that you can pick a starting point.
- If the program option for printing with advanced reports is on, the program opens the advanced report designer instead of this window. See Advanced report designer and viewer.
- Each design belongs to the type of document it was made for: a bill design is not a voucher design. The field list, the online templates and the Open list all belong to that type only.
- Two permissions of the Users window control saving: Print Templates - Add to create a new design, and Print Templates - Modify to save changes to an existing one. They are in Users Management > Operations > General.
Window layout
| Area | What it holds |
|---|---|
| The ribbon at the top | The File button, the quick access toolbar and the pages Home, Insert, Page Layout and View. In preview mode there is one page: Preview. Contextual ribbons appear when needed. |
| Field list | A panel beside the page with the fields of the document. Show or hide it with View > Field List. |
| The page | The sheet you design, with a ruler in the chosen unit. Pages appear as they will print. |
| Status bar | The page number as 1 / 1, a zoom percentage list and a zoom slider. |
| Wait overlay | Covers the window while it prepares, opens a design or generates the preview, with a line of text saying what is happening. See Messages. |
The window has two modes: Design, the default, and Preview. The Preview command switches to preview: the program reads the data of the document the designer was opened for (the bill or voucher, for example) and generates the pages as they will print. The Design command goes back. If you click Cancel in the wait overlay during generation, the program goes back to design mode.
Quick access toolbar
Small buttons above the ribbon:
| Button | What it does |
|---|---|
| Save (Ctrl+S) | Saves the design. Shown only in design mode and only with the permission Print Templates - Modify. Details in Save. |
| Preview | Switches to preview. Shown in design mode. |
| Design | Goes back to design. Shown in preview mode. |
| Undo (Ctrl+Z) and Redo (Ctrl+Y) | Undo or redo the last change on the page. Shown in design mode. |
The File menu
Open it with the File button at the start of the ribbon. These are its pages in order:
New
Starts a new design. A list of template thumbnails appears. The first is Blank document, followed by the ready-made templates published online for this document type.
| Item | Description |
|---|---|
| Search box | Filters the templates by name. Hidden if you may not create designs. |
| Template list | Click a template, or select it and press Enter. Blank document starts an empty design. A ready-made template opens Create from an online template. |
| "Loading Templates..." | Shown with a progress bar while the list is fetched. If fetching fails, only Blank document stays in the list. |
| "You don't have sufficient permissions to create documents." | Shown instead of the list if you lack Print Templates - Add. |
Before the new design starts, if the current design has unsaved changes, the program asks whether to save them (see Messages). A new blank design is an A4 portrait page with one inch margins and the default font Segoe UI. At the bottom it has a small grey line saying the document was printed with alameen ERP, next to the page number.
Open
Shows thumbnails with the names of the saved designs of this document type: your own designs and every shared design. The newest come first.
| Item | Description |
|---|---|
| Search box | Filters the designs by name. |
| Design list | Click a design, or select it and press Enter, to open it in the window. |
| "Loading Documents..." | Shown while the list is fetched. |
| "There aren't any saved files." | Shown when there is no saved design. |
Opening a design from this list replaces the current page without asking about unsaved changes. Save your work first.
Save
A button that saves the current design, with the shortcut Ctrl+S. It is hidden without the permission Print Templates - Modify. These are its rules in order:
- Without the modify permission the message "You don't have sufficient permissions to save the document." appears and nothing is saved.
- If the design is new and was never saved, and you lack Print Templates - Add, the message "You don't have sufficient permissions to create documents." appears.
- If the design was saved before, the program updates the saved design of that name and records you as its owner, then closes the menu.
- If it is new, the program opens Save As so that you can type a name.
Save As
A page with the Name field (it starts with the current design name, such as Design1) and the Save button. The button is disabled while the field is empty. The page shows only for users with Print Templates - Add.
- If you have no design of that name for this document type, the program saves a new design that is yours and not shared, and the new name becomes the window title.
- If you already have a design of that name, the program needs Print Templates - Modify, then asks "… already exists. Do you want to replace it?" with the buttons Ok and Cancel.
Export
A button that saves the design to a file with the extension .amnx (file type "alameen Rich Documents") so that you can move it to another computer. You choose the file name and place in the usual Windows save box. The file holds the design, its thumbnail and the calculated fields it uses. If saving fails, the message "An error occurred while exporting the document." appears. After exporting, the program records in the original document that it was exported. For a bill this is written in the log. The steps are in Import or download a print template.
Import
A button that opens the Import Wizard to read a design from an .amnx file. Before the wizard, if the current design has unsaved changes, the program asks whether to save them. When the wizard finishes, the contents of the file replace the contents of the open design. The program does not save them until you click Save.
Close
Closes the window. If you have Print Templates - Modify and the design has unsaved changes, the program asks "Want save changes to …?" with the buttons Yes, No and Cancel. Yes saves and closes, No closes without saving, and Cancel keeps you in the window. A user without the modify permission closes it with no question.
Every minute the program saves a backup copy of the open design to a temporary file. The copy is deleted on a normal close. If a session ends abruptly, the next session shows Unsaved Document Recovery.
Field list
A panel beside the page with all the fields of the document, grouped. For a bill, for example: bill fields, bill lines and totals. The fields differ with the document type. The calculated fields you create sit in a group named Calculated Fields.
| Item | Description |
|---|---|
| Search box "Search Field List" | Shows the fields whose title contains the text you type. |
| Group header | A colored stripe beside the title. Each group has a color from a fixed palette, and it is the color of its field marks on the page. Click it to expand or collapse the group. |
| Field | The icon of its type (text, number, date, picture, formula and others) and its title. |
To insert a field, double-click it or drag it to the page. A drag starts after you move the mouse more than 10 points, and a marker shows where the field will land. Fields reserved for tables (the bill lines, for example) can be dropped only inside a table. The rules are in Inserting a field.
Inserting a field
- A table-only field: if the cursor is not inside a table, the message "You can insert "…" field into table only." appears.
- A table that holds fields of another data set: the message "All fields must belong to the same data set." appears.
- A table field in a cell: if the cell above the current cell is empty, the program writes the field title in it and puts the field in the current cell. If the current cell is in the first row and the cell below it is empty, the program puts the title in the current cell and the field in the cell below. Hold
Ctrlwhile inserting to stop the title from being written. Then the cursor moves to the next cell in the row. - A field in the page: it goes in at the cursor. If the cursor is inside another field, the new field goes before or after it, depending on which half of the field the cursor is in.
- Do not type inside a field. Typing between the marks of a field is cancelled, and
Enterinside a field does nothing. Any formatting you apply while the cursor is in a field applies to the whole field.
The field appears on the page as its title between two marks. The style of the marks is set by the option Fields Markers in View.
The ribbon
The ribbon has five pages. Home, Insert, Page Layout and View show in design mode, and Preview alone shows in preview mode. Most commands for text, paragraphs, tables and pictures work as in the usual word processors. The tables below list every command and what it does.
Home
Preview
| Command | What it does |
|---|---|
| Preview | Switches to preview mode. |
Clipboard
| Command | What it does |
|---|---|
| Paste (split button) | Pastes the clipboard. Its menu Paste Options: Keep Source Formatting, Keep Text Only, Merge Formatting and Use Destination Styles. |
| Cut and Copy | Cut or copy the selection to the clipboard. |
| Format Painter | Takes the formatting of the selection to apply to another selection. One click applies it once. Two quick clicks keep it on for several pastes. |
Font (the small button in the group corner opens the Font dialog)
| Command | What it does |
|---|---|
| Font | A list of Windows fonts. You can only choose from it. |
| Font Size | A list of font sizes. You can only choose from it. |
| Increase Font Size and Shrink Font | Make the font one step bigger or smaller. |
| Clear All Formatting | Removes all formatting from the selection. |
| Bold (Ctrl+B) and Italic (Ctrl+I) | Make the text bold or italic. |
| Underline (Ctrl+U) (split button) | Underlines the text. Its menu has eight line styles: line, double, thick, dotted, dashed, dot-dashed, dot-dot-dashed and wave. It also has Underline Color with a color palette that includes Automatic. |
| Strikethrough | Draws a line through the text. |
| Subscript (Ctrl+Shift++) and Superscript | Put smaller text below or above the line. |
| Text Highlight Color (split button) | Colors the text background. The menu is a color palette that includes No Color. |
| Font Color (split button) | Changes the text color. The menu is a color palette with Automatic and a button for more colors. |
Paragraph (the small button in the group corner opens the Paragraph dialog)
| Command | What it does |
|---|---|
| Bullets and Numbering | Create a bulleted or numbered list. |
| Decrease Indent and Increase Indent | Move the paragraph closer to or farther from the margin. |
| Left-to-Right Text Direction and Right-to-Left Text Direction | Set the reading direction of the paragraph. |
| Show/Hide Paragraph Marks | Shows paragraph marks and hidden formatting symbols. |
| Align Left (Ctrl+L), Center (Ctrl+E), Align Right (Ctrl+R) and Justify | Align the paragraph. |
| Line and Paragraph Spacing (split button) | Its menu: 1.0, 1.15, 1.5, 2.0, 2.5, 3.0, Line Spacing Options... (opens the paragraph dialog), Add Space Before Paragraph and Remove Space After Paragraph. |
| Shading (split button) | Colors the paragraph background. The menu is a color palette that includes No Color. |
Insert
| Group | Command | What it does |
|---|---|---|
| Pages | Page Break | Ends the current page at the cursor and starts a new one. |
| Tables | Table (split button) | A grid appears. Point to choose the number of rows and columns. Below it, Insert Table... opens the Insert Table dialog. The table is created left to right with automatic width, and the cursor goes into a cell of the first row. |
| Fields | Calculated Field | Opens the Expression Builder to create a new field. |
| Fields | Manage Calculated Fields | Opens Manage Calculated Fields. |
| Illustrations | Picture | Opens a box to choose a picture file, inserts it at the cursor and selects it. |
| Header & Footer | Header and Footer | Open the page header or footer for editing. The contextual ribbon Header & Footer Tools appears. |
| Text | Page Number, Total Pages and Date & Time | Insert a field for the page number, the page count of the document, or the print date and time. |
| Symbol | Symbol | Opens the Insert Symbol dialog with larger symbols. |
Page Layout
The small button in the corner of the Page Setup group opens the Page Setup window.
| Group | Command | What it does |
|---|---|---|
| Page Setup | Margins (split button) | The menu has ready presets, each with its name and its margins in the chosen unit: Normal (one inch on every side), Narrow (half an inch), Moderate (one inch top and bottom, 0.75 inch left and right) and Wide (one inch top and bottom, two inches left and right). At the end, Custom Margins... opens Page Setup. |
| Orientation (split button) | Portrait or Landscape. | |
| Size (split button) | A list of the paper sizes that the default Windows printer knows, each with its name and dimensions. At the end, Custom Page Size... opens Page Setup. | |
| Page Background | Watermark | Opens the Watermark dialog. |
| Picture watermark | Opens a box to choose a picture to use as a watermark behind the content. | |
| Stretch (split button) | Enabled when the watermark is a picture. Stretch to Margin, Stretch to Page and Reset Size. | |
| Remove Watermark | Enabled when a watermark exists. | |
| Options | Generate Data Only | Makes printing show the field values only and hides the other text, such as field labels. It applies to page text, not to tables. Default: off. |
| Repeat Table Header | Repeats the table header row at the top of every page. Default: on. | |
| Show Zero Values | When cleared, zero numeric values print empty. Default: on. |
The three options in Options belong to each design, and the program saves them with it.
View
| Group | Command | What it does |
|---|---|---|
| Zoom | Zoom (split button) | The percentages: 25%, 50%, 75%, 100%, 150%, 200% and 500%. |
| 100%, Whole Page and Page Width | Set the zoom to real size, to show the whole page, or to make the page width fill the window. | |
| Show | Field List | Shows or hides the field list. |
| Fields Markers | Shows or hides the field marks on the page. Default: shown. | |
| Field Group | Writes the group name above each field so that it can be told from a field of the same name in another group. Enabled only with Fields Markers. | |
| Options | Measurement Unit | Centimeter, Inch, Millimeter, Pica or Point. Used by the ruler, the size boxes and the dialogs. Default: millimeter. |
| Fields Markers (list) | The style of the marks: Brackets (default), Shading or Gradient Shading. |
The program keeps Measurement Unit and Fields Markers for you personally, so you find them again next time.
Preview
Shown in preview mode only.
| Group | Command | What it does |
|---|---|---|
| Design | Design | Goes back to design mode. |
| Refresh | Refresh | Reads the data again and generates the preview again. |
| Zoom | As in View. | |
| Quick Print | Prints on the default Windows printer with no print box. | |
| Opens the Windows print box with the page size and orientation of the design, and the page count. | ||
| Export & Share | Export (split button) | Word, PDF, HTML and RTF. Saves the preview to a file of the chosen type (.docx, .pdf, .htm or .rtf). |
| Share (split button) | The same four types. Prepares a temporary file named after the mail subject or the document title, and opens Share File with the mail addresses the document knows (for a bill, the customer email). | |
| Find | Find | Opens the Find dialog. |
- The Print group is disabled when the original document was printed before and you lack the permission to print it again. For a bill that is Print More than One Copy of Bill, and for a voucher Reprint Entry. A cheque is not disabled for this reason. In other documents, such as orders, transpositions and shipments, the group is disabled after the first print from the window, for every user.
- The Export & Share group is disabled without the permission Export Bill Using Commands of Bill Grid Menu. You find it in Users Management > Operations > General.
- After you print the document from the preview, the program treats it as printed. For a bill it marks the bill "printed", records it in the log, and regenerates the preview if the document shows the duplicate-copy phrase. See Print a bill.
- The HTML export may differ slightly from the screen: the document is generated again with no repeated table header.
- If export or sharing fails, the message "An error occurred while exporting the document." appears.
Contextual ribbons
These ribbons show in design mode only, depending on what the cursor is in. They appear with a colored title above their pages.
Header & Footer Tools
Shown when the cursor is in the page header or footer. Page Design:
| Group | Command | What it does |
|---|---|---|
| Insert | Page Number, Total Pages and Date & Time | Insert the matching fields, as in Insert. |
| Navigation | Go to Header | Moves from the footer to the header. Enabled while the cursor is in the footer. |
| Go to Footer | Moves from the header to the footer. Enabled while the cursor is in the header. | |
| Position | Header from Top | The distance from the top of the sheet to the top of the header, in the chosen unit. |
| Footer from Bottom | The distance from the bottom of the sheet to the bottom of the footer. | |
| Close | Close Header & Footer | Goes back to the body of the page. |
When you switch to preview from inside the header or footer, the program closes them first.
Table Tools
Shown while the cursor is inside a table. It has three pages.
Design
| Group | Command | What it does |
|---|---|---|
| Table Style Options | Header Row and Total Row | Special formatting for the first or last row. |
| Banded Rows and Banded Columns | Different formatting for even and odd rows or columns. | |
| First Column and Last Column | Special formatting for the first or last column. | |
| Borders (the small button in the corner opens Table Borders) | Line style list | The style of new borders. |
| Line weight list | The width of new borders, from 1 to 8. | |
| Pen Color | The color of new borders. Default: Automatic. | |
| Borders (split button) | Bottom Border, Top Border, Left Border, Right Border, No Border, All Borders, Outside Borders, Inside Borders, Inside Horizontal Border, Inside Vertical Border, Default Table Borders, Default Cell Borders, and Custom... which opens the table borders dialog. | |
| Rows Shading and Columns Shading | First Color and Second Color | The two alternating background colors. The menu is a color palette that includes No Color. |
| Band Size | The number of rows (or columns) in each color band, from 1 to 8. | |
| Table Styles | Table Styles | Opens Table Styles. |
| Shading (split button) | The background color of the selected cells. | |
| Clear Formatting | Returns the table to its default style. |
Layout
| Group | Command | What it does |
|---|---|---|
| Table | Select (split button) | Select Cell, Select Column, Select Row and Select Table. |
| Properties | Opens Table Properties. | |
| Delete | Deletes the table. | |
| Rows | Insert Row, Insert Below, Insert Above and Delete Row | Add or delete a row. |
| Columns | Insert Column, Insert Left, Insert Right and Delete Column | Add or delete a column. |
| Merge | Merge Cells and Split Cell | Merge or split the selected cells. |
| Alignment | Nine buttons | Align the cell content: top, middle or bottom with left, center or right. In the Arabic interface the program swaps the names left and right. |
Size
| Group | Command | What it does |
|---|---|---|
| Space from Top | First Page and Other Pages | The distance from the top of the page to the top of the table, in the chosen unit. Both groups show only for a table that holds a table-only field, that is, the table of document lines such as bill lines. |
| Space from Bottom | Last Page and Other Pages | The distance from the bottom of the table to the bottom of the page. |
| Cell Size | Auto Fit (split button) | AutoFit to Window or Fixed Column Width. |
| Height and Width | The height and width of the selected cells. An empty value, or the button beside it, returns them to Auto. | |
| Distribute Rows and Distribute Columns | Share the space equally. |
Picture Tools
Shown while a picture is selected. Page Format:
| Group | Command | What it does |
|---|---|---|
| Edit | Image Editor | Opens the Image Editor. |
| Change Picture | Replaces the picture with one from a file. | |
| Reset Size | Returns the picture to its original size. | |
| Adjust | Brightness/Contrast, Sharpen/Soften, Blur, Hue and Saturation | Open the image editor on the matching tool. |
| Invert Colors | Inverts the colors of the picture. | |
| Arrange | Rotate Right 90° and Rotate Left 90° | Rotate the picture. |
| Flip Vertical and Flip Horizontal | Flip the picture. | |
| Align (split button) | Horizontal alignment (Align Left, Align Center, Align Right), vertical alignment (Align Top, Align Middle, Align Bottom), Align to Page and Align to Margin. | |
| Wrap Text (split button) | In Line with Text, Square, Top and Bottom, Behind Text, In Front of Text, and More Layout Options... which opens Floating Blocks Layout. | |
| Size | Crop | Opens the image editor on the crop tool. |
| Stretch (split button) | Stretch Horizonal to Margin, Stretch Vertical to Margin, Stretch to Fit to Margin, the same three for the page, and Preserve Aspect Ratio. | |
| Width and height | The size of the picture in the chosen unit. |
Field Tools
Shown while the cursor is inside a field. A field has the page Properties. Its groups show depending on its type:
| Group | Shown for | Command and what it does |
|---|---|---|
| Text | Every field that is not a picture | Text Direction: Default, Left to Right or Right to Left. Minimum Width: if the content is narrower, the field is widened to it, and the button beside it returns it to Auto. Alignment: Default, Left, Center or Right. |
| Amount, quantity and number fields, and formulas | Number as Text: writes the number in words. Number as Text Properties: enabled with Number as Text, it opens Number as Text Properties. | |
| Number | Numbers, quantities, prices, percentages and calculated fields | The number format list: Default (uses the alameen settings for prices and quantities) or Custom. Precision from 0 to 10, and Use Thousands Separator. Both are enabled with Custom only. |
| Date & Time | Date, time and print date fields | Calendar: Gregorian, Gregorian (Eastern Months), Gregorian (Western Months) or Umm Al-Qura. Format: a list of date and time formats, each shown with an example from the current time. |
| A group titled with the related set | Fields that have a related set | A text box with the display format. Its button opens the Related Set Template builder. |
| Sub Types (the title may differ by document) | Fields that have sub types | One list per sub type, which changes what the field shows, such as the price type. Only the lists whose sub type applies to this field appear. |
| Barcode | Every field except a picture link, the page number and the page count | Type: None or a type of barcode. The small button in the group corner opens Barcode Settings. |
| Size | Picture fields and fields with a barcode | Fit (split button): None, Width, Height or All. Then Width and Height in the chosen unit. An empty value means Auto. |
The properties are kept in the field itself inside the design. Any change makes the design "modified", so the program asks whether to save it when you close.
Right-click menu
Right-click the page and a menu appears. It changes with what is under the cursor. These are its groups:
| Group | Items |
|---|---|
| Clipboard | Cut, Copy and Paste. |
| Text | Font... and Paragraph... open the Font and Paragraph dialogs. |
| Header and footer | Edit Header and Edit Footer. |
| Table | Insert (column to the left or right, row above or below), Delete (row, column, table), Select (cell, column, row, table), AutoFit (AutoFit to Window or Fixed Column Width), Merge Cells and Split Cell, Table Borders... and Table Properties..., and Add Space Before Table or Remove Space Before Table. The first shows when no paragraph comes before the table, and the second when an empty paragraph does. |
| Field | Delete Field. It deletes the field. If the field is in a table and the cell above it or beside it holds the field title, the program deletes that cell too. |
| Picture | Edit Image. |
| Lists | Continue Numbering, Restart at 1 and Set Numbering Value.... |
| Floating pictures | Wrap Text and its menu, and More Layout Options.... |
| Hyperlink | Remove Hyperlink. |
| Text box | Add Text or Edit Text. |
Keyboard shortcuts
| Shortcut | What it does |
|---|---|
Ctrl+S | Saves the design. |
Ctrl+F | Opens the Find dialog. If the File menu is open on New or Open, it moves the cursor to the search box there. |
Ctrl+Z and Ctrl+Y | Undo and redo. |
Ctrl+B, Ctrl+I and Ctrl+U | Bold, italic and underline. |
Ctrl+L, Ctrl+E and Ctrl+R | Align left, center and align right. |
Left Ctrl and left Shift together | Make the paragraph direction left to right. |
Right Ctrl and right Shift together | Make the paragraph direction right to left. |
Tab and Shift+Tab inside a table | In the Arabic interface, Tab moves to the next cell, and Shift+Tab to the previous one, following the right-to-left reading order. Tab in the leftmost cell of the last row adds a new row. |
Messages
| Message or text | When it appears | What to do |
|---|---|---|
| Initializing... | When the window opens. | Wait. |
| Opening Document... | When the chosen design opens. | Wait. |
| Reading Data... then Generating Preview... | After Preview or Refresh. | Wait, or click Cancel in the wait overlay. |
| An error occurred while generating preview. | Generating the preview failed. If a data read error caused it, that error's own message shows instead. | Go back to design, check the fields and try again. |
| Want save changes to …? | When you close the window, start a new design or click Import, and the design has unsaved changes. | Yes, No or Cancel. |
| You don't have sufficient permissions to save the document. | Saving without Print Templates - Modify. | Ask for the permission. |
| You don't have sufficient permissions to create documents. | Saving a new design without Print Templates - Add. It is also what you read on New. | Ask for the permission. |
| … already exists. Do you want to replace it? | Save As with the name of a design of yours that exists. | Ok to replace, or Cancel. |
| We're sorry. We can't open the file because its contents are incompatible. | Opening a design of another document type. | Open a design of this document type. |
| We're sorry. We can't open the file because we found a problem with its contents. | The design content is damaged. | Start a new design. |
| Sorry, We couldn't open your file. Is it possible it was renamed or deleted. | The requested design is no longer in the database. | Choose another design. |
| An error occurred while creating new document. | A template file (.amnx or an online template) could not be read in New. | Try another template. |
| You can insert "…" field into table only. | Inserting a table-only field while the cursor is outside a table. | Put the cursor inside a table. |
| All fields must belong to the same data set. | Inserting a field into a table that holds fields of another data set. | Use fields of the same data set. |
| An error occurred while exporting the document. | Export or Share failed. | Check the save place and that the file is not open in another program. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.