4D v13Video script |
||
|
4D v13
Video script
Video script
In this video, we're going to learn to use forms for printing and adapt them to our needs. In 4D, all forms can be printed. We don't make a distinction between the concept of a report (for printing) and that of a form (screen display). In most cases, especially for issues concerning different layouts or sizes, data entry and printing use separate forms. It is common to have several forms for the same table. 4D doesn't impose any limits. We can indicate the form to use either programmatically (we'll see how later) or by using interface tools in the Design environment where, here (Editor's note: In the Explorer) we can choose which form will be used as the input or output form. Then, when printing, we can again choose the form to be used. To create a print form we'll use the wizard just like we did for the screen form. We're going to create a form so we can print each technician and their interventions. The TECHNICIANS table is selected so let's use the wizard.
We then see:
Let's move on to the list of technicians.
The preview shows 50 pages; obviously we can save some space by changing the size and the font of each field displayed. The purpose is to see how easy it is to print using relations, without having to program anything, and here we have the list of interventions for the technician Bonaparte. What we just did using the File => Print command could also be done through programming using the 4D print commands. Furthermore, we'll see in later chapters how to improve the appearance and functionality of our forms, more specifically by learning how to handle form objects. |
PROPERTIES
Product: 4D |