Skip to main content

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.

FromWhat 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 restaurantsOpens 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 windowOpens the design you are previewing.
Manage print designsFrom 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​

AreaWhat it holds
The ribbon at the topThe 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 listA panel beside the page with the fields of the document. Show or hide it with View > Field List.
The pageThe sheet you design, with a ruler in the chosen unit. Pages appear as they will print.
Status barThe page number as 1 / 1, a zoom percentage list and a zoom slider.
Wait overlayCovers 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:

ButtonWhat it does
Save (Ctrl+S)Saves the design. Shown only in design mode and only with the permission Print Templates - Modify. Details in Save.
PreviewSwitches to preview. Shown in design mode.
DesignGoes 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.

ItemDescription
Search boxFilters the templates by name. Hidden if you may not create designs.
Template listClick 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.

ItemDescription
Search boxFilters the designs by name.
Design listClick 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.
warning

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:

  1. Without the modify permission the message "You don't have sufficient permissions to save the document." appears and nothing is saved.
  2. 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.
  3. 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.
  4. 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.

ItemDescription
Search box "Search Field List"Shows the fields whose title contains the text you type.
Group headerA 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.
FieldThe 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 Ctrl while 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 Enter inside 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

CommandWhat it does
PreviewSwitches to preview mode.

Clipboard

CommandWhat 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 CopyCut or copy the selection to the clipboard.
Format PainterTakes 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)

CommandWhat it does
FontA list of Windows fonts. You can only choose from it.
Font SizeA list of font sizes. You can only choose from it.
Increase Font Size and Shrink FontMake the font one step bigger or smaller.
Clear All FormattingRemoves 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.
StrikethroughDraws a line through the text.
Subscript (Ctrl+Shift++) and SuperscriptPut 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)

CommandWhat it does
Bullets and NumberingCreate a bulleted or numbered list.
Decrease Indent and Increase IndentMove the paragraph closer to or farther from the margin.
Left-to-Right Text Direction and Right-to-Left Text DirectionSet the reading direction of the paragraph.
Show/Hide Paragraph MarksShows paragraph marks and hidden formatting symbols.
Align Left (Ctrl+L), Center (Ctrl+E), Align Right (Ctrl+R) and JustifyAlign 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​

GroupCommandWhat it does
PagesPage BreakEnds the current page at the cursor and starts a new one.
TablesTable (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.
FieldsCalculated FieldOpens the Expression Builder to create a new field.
FieldsManage Calculated FieldsOpens Manage Calculated Fields.
IllustrationsPictureOpens a box to choose a picture file, inserts it at the cursor and selects it.
Header & FooterHeader and FooterOpen the page header or footer for editing. The contextual ribbon Header & Footer Tools appears.
TextPage Number, Total Pages and Date & TimeInsert a field for the page number, the page count of the document, or the print date and time.
SymbolSymbolOpens 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.

GroupCommandWhat it does
Page SetupMargins (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 BackgroundWatermarkOpens the Watermark dialog.
Picture watermarkOpens 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 WatermarkEnabled when a watermark exists.
OptionsGenerate Data OnlyMakes 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 HeaderRepeats the table header row at the top of every page. Default: on.
Show Zero ValuesWhen 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​

GroupCommandWhat it does
ZoomZoom (split button)The percentages: 25%, 50%, 75%, 100%, 150%, 200% and 500%.
100%, Whole Page and Page WidthSet the zoom to real size, to show the whole page, or to make the page width fill the window.
ShowField ListShows or hides the field list.
Fields MarkersShows or hides the field marks on the page. Default: shown.
Field GroupWrites 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.
OptionsMeasurement UnitCentimeter, 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.

GroupCommandWhat it does
DesignDesignGoes back to design mode.
RefreshRefreshReads the data again and generates the preview again.
ZoomAs in View.
PrintQuick PrintPrints on the default Windows printer with no print box.
PrintOpens the Windows print box with the page size and orientation of the design, and the page count.
Export & ShareExport (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).
FindFindOpens 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.

Shown when the cursor is in the page header or footer. Page Design:

GroupCommandWhat it does
InsertPage Number, Total Pages and Date & TimeInsert the matching fields, as in Insert.
NavigationGo to HeaderMoves from the footer to the header. Enabled while the cursor is in the footer.
Go to FooterMoves from the header to the footer. Enabled while the cursor is in the header.
PositionHeader from TopThe distance from the top of the sheet to the top of the header, in the chosen unit.
Footer from BottomThe distance from the bottom of the sheet to the bottom of the footer.
CloseClose Header & FooterGoes 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

GroupCommandWhat it does
Table Style OptionsHeader Row and Total RowSpecial formatting for the first or last row.
Banded Rows and Banded ColumnsDifferent formatting for even and odd rows or columns.
First Column and Last ColumnSpecial formatting for the first or last column.
Borders (the small button in the corner opens Table Borders)Line style listThe style of new borders.
Line weight listThe width of new borders, from 1 to 8.
Pen ColorThe 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 ShadingFirst Color and Second ColorThe two alternating background colors. The menu is a color palette that includes No Color.
Band SizeThe number of rows (or columns) in each color band, from 1 to 8.
Table StylesTable StylesOpens Table Styles.
Shading (split button)The background color of the selected cells.
Clear FormattingReturns the table to its default style.

Layout

GroupCommandWhat it does
TableSelect (split button)Select Cell, Select Column, Select Row and Select Table.
PropertiesOpens Table Properties.
DeleteDeletes the table.
RowsInsert Row, Insert Below, Insert Above and Delete RowAdd or delete a row.
ColumnsInsert Column, Insert Left, Insert Right and Delete ColumnAdd or delete a column.
MergeMerge Cells and Split CellMerge or split the selected cells.
AlignmentNine buttonsAlign 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

GroupCommandWhat it does
Space from TopFirst Page and Other PagesThe 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 BottomLast Page and Other PagesThe distance from the bottom of the table to the bottom of the page.
Cell SizeAuto Fit (split button)AutoFit to Window or Fixed Column Width.
Height and WidthThe height and width of the selected cells. An empty value, or the button beside it, returns them to Auto.
Distribute Rows and Distribute ColumnsShare the space equally.

Picture Tools​

Shown while a picture is selected. Page Format:

GroupCommandWhat it does
EditImage EditorOpens the Image Editor.
Change PictureReplaces the picture with one from a file.
Reset SizeReturns the picture to its original size.
AdjustBrightness/Contrast, Sharpen/Soften, Blur, Hue and SaturationOpen the image editor on the matching tool.
Invert ColorsInverts the colors of the picture.
ArrangeRotate Right 90° and Rotate Left 90°Rotate the picture.
Flip Vertical and Flip HorizontalFlip 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.
SizeCropOpens 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 heightThe 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:

GroupShown forCommand and what it does
TextEvery field that is not a pictureText 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 formulasNumber as Text: writes the number in words. Number as Text Properties: enabled with Number as Text, it opens Number as Text Properties.
NumberNumbers, quantities, prices, percentages and calculated fieldsThe 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 & TimeDate, time and print date fieldsCalendar: 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 setFields that have a related setA 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 typesOne 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.
BarcodeEvery field except a picture link, the page number and the page countType: None or a type of barcode. The small button in the group corner opens Barcode Settings.
SizePicture fields and fields with a barcodeFit (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:

GroupItems
ClipboardCut, Copy and Paste.
TextFont... and Paragraph... open the Font and Paragraph dialogs.
Header and footerEdit Header and Edit Footer.
TableInsert (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.
FieldDelete 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.
PictureEdit Image.
ListsContinue Numbering, Restart at 1 and Set Numbering Value....
Floating picturesWrap Text and its menu, and More Layout Options....
HyperlinkRemove Hyperlink.
Text boxAdd Text or Edit Text.

Keyboard shortcuts​

ShortcutWhat it does
Ctrl+SSaves the design.
Ctrl+FOpens 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+YUndo and redo.
Ctrl+B, Ctrl+I and Ctrl+UBold, italic and underline.
Ctrl+L, Ctrl+E and Ctrl+RAlign left, center and align right.
Left Ctrl and left Shift togetherMake the paragraph direction left to right.
Right Ctrl and right Shift togetherMake the paragraph direction right to left.
Tab and Shift+Tab inside a tableIn 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 textWhen it appearsWhat 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.

This page applies to alameen ERP 10, version 10.1.79.764.