» Go to: START THE WORK WITH MODUS SYSTEM
» Go to: GUIDEBOOK FOR THE USER
Modus system has a tool for the printout edition, therefore the outlook of documents is not imposed. In an easy way you can create templates of documents, reports, and labels. You can decide what data should be included in every document or report and customize it for your needs.
By using the template editor you can create new templates of documents. Templates are divided into systemic, (those that cannot be edited or deleted) and user's templates (that are fully editable).
The printout template is created on the basis of the existing one. By clicking on the icon „print a document” a preview window of this document will open. By unrolling the template button Należy rozwijając przycisk szablon (the arrow on the right side of the Template icon) choose „Save the template as” and fill in the name of this template (the code) and confirm.
++++ Screen 1 |
++++
Now, the new template can be edited. Again, unroll the template button and choose from the list „Edit the template”. The window of the printout template editor will open.
By closing the FastReport you will see the preview of changes, which were inserted. In order to save it you have to unroll the Template button and choose „Save the template”. The program will ask you whether to save the template each time you close the printout or change the template for another.
The window of the printout editor
++++ Screen 2 |
++++
Page options The change of the template settings are available via the „File | Page settings…” in the menu, or by the double click on the empty space.
++++ Screen 3 |
++++
In the settings window, you can choose the size, arrange margins and the paper source.
All the information, that is in the printout template are known as objects in the program.
Object of the data type – a variable from the data tree
The object can be dragged from the data tree.
Object of the text type – inserted text
After choosing the object button from the toolbar and indicating the place on the template, you can insert text.
Object of the picture type – picture
++++ Screen 4 |
++++
Picture of the small size (about 20 KB) can be placed in a specific place by selecting the object from the toolbar and indicating the place.
Additionally you have to load the file and confirm it by clicking OK.
The picture can be enlarged, made smaller, or stretched by using black points in the corners of the picture.
In order to add a bigger picture, you have to proceed in the same way, apart from loading the file. Only confirm the empty object. In the inspector object → Details in the FileLink field insert the path of the file localization on this computer. In other computer workstations, the image added in this way will not be visible, unless the image will be inserted in the same localization.
Object of the bar code type – bar code
Insertion of the ribbon - allows for the creation of the website's project on the area that has to be defined according to its type.
Resource code
++++ Screen 5 |
++++
From the data tree from the tab „Data” you can drag and drop a specific object into the template. By clicking on the object, a down arrow will be visible like during the opening of the list). By using the arrow you can quickly change the object into the other one.
++++ Screen 6 |
++++
By double clicking, the edition window will open, where you can add text, if it has to be displayed before a variable.
E.g. text name
++++ Screen 7 |
++++
Bands (ribbons)
particular objects from the data tree are placed on the bands.
In order to add a band:
++++ Screen 8 |
++++
++++ Screen: Adding of a new band |
++++
++++ Screen: Defining of the branch correlated with the band |
++++
++++ Screen: Placing an object on the appropriate band |
++++
To add or change logo on the printouts, you have to:
In the global configuration in the tab System/Printing was inserted there is a possibility to insert a company logo to the base that will be available on all the printouts of documents that can be edited. A preview of the inserted logo is also available, but only for the pictures in the bmp. format (in this version).
In order to place the logo on the printout, in the printouts editor, put the object of the ‘Picture’ type on the template. When a dialog box ‘Picture’ will appear - close it without loading the picture. Next, set properties of a new object according to the following tips:
The size of the picture will be adjusted to the size of an object on the template with a sense of proportion. In order to show the picture on a scale of 1:1 you have to set the AutoSize properties into the value ‘true’.
In the Modus system values on the documents are rounded to two decimal places. On the printout template you can change the number of printed decimal places. For this purpose:
++++ Screen 1 |
++++
++++ Screen 2 |
++++
++++ Screen 3 |
++++
Formatting can be defined also by using the tab Text it may happen that, despite the fact that in the field Format string there is %2.2n, then the round number is different than two decimal places. In this case
[document_specification.”quantity„ #n%2,4n] into [document_specification.”quantity„ #n%2,Xn],On the assortment's label, a bar code of the assortment is encoded by default, but it can be changed:
In the Modus system it is possible to conduct mathematical operations of the report's elements. In order to do e.g. multiplication:
On the template of the printout, you can add up the value of specific columns. In order to the add the sum of the particular column:
Modus system allows you for specifying a column according to which data that are on the printout should be sorted. Specifying a direction of sorting is also possible. To change sorting:
++++ Screen: Printout before the change of sorting |
++++
++++ Screen: Change of sorting |
++++
++++ Screen: Printout after the change of sorting |
++++
Modus system Modus allows you for using different types of functions. One of them is the function IIF.
An example of use: On the order document to the supplier, a date of the order realization was defined. Additionally, for some ordered assortments different dates of realization were defined. With regard to the possibility of defining two dates of realization, on the template there are also two dates of realization:
[dokument_specyfikacja.”planowany_termin_dostawy„] - a date of realization of a specific item from the order,[dokument.”planowany_termin_dostawy„] - general date of the order realization,
++++ Screen: Printout with two columns |
++++
By using the IIF function, you do not have to place both of the columns on the printout's template. You can place the column by using the function: kolumny z następującą funkcją:
[IIF(<dokument_specyfikacja.”planowany_termin_dostawy„>==0, <dokument.”planowany_termin_dostawy„>,
<dokument_specyfikacja.”planowany_termin_dostawy„>)]If the individual date of delivery completion was specified for the document's item, it will be displayed, otherwise a date of the order completion will be displayed.
In case of printouts that include the aggregated items, sorting should be defined for two branches. Sorting on the second branch is conducted as part of the data tree batches_specification. For the right functioning of the template, aggregation should take place within the elements of the tree batches_specification. (each GroupHeader should be set to batches_specification).
In order to configure a printout of the template:
++++ Screen 1: Configuration of the GroupHeader header |
++++
++++ Screen 2: Configuration of sorting the template with aggregation |
++++
++++ Screen 3: Choice of columns for sorting |
++++
Items on the CMR document are grouped, hence in order to change the gross weight into net weight it is not enough to exchange the element on the printout of template. To edit the template of the CMR document and change the gross weight into the net weight
++++ Screen 1: Edition of the CMR document's template|
++++
++++ Screen 2: Edition of the template's code |
++++
To select one of the templates as default: - print out a chosen document,
» Return to: USER GUIDE