AMT Help Files

Fill/Read Print Layout Items

The fifth option of the code wizard is the 'Add fill/read print layout items', this creates program code that lists all the fields of a selected print or form layout, and when used in a report, lists all the layout items of the selected print layout.

Step 1 Set the cursor at the place in your code where you want to insert the new code lines.
Step 2 Start the code wizard.

This can be done by clicking the right mouse button and choosing "Code Wizard" from the popup menu, or by using the shortcut "Ctrl+W".
Step 3 Choose "Print layout items"
Step 4 Define which objects you want to take the layout items from, and whether you want to read or fill layout items.



In the 'Layout' field a search string can be entered consisting of the starting letters of the Print Layout to find.

Step 5 After clicking 'Next' the code wizard will list all the available layout items.

You can decide to select all or select some by checking the boxes or using the buttons.



In the 'Name' field a search string can be entered consisting of the starting letters of the Layout Field to find.

Step 6 The selected layout items are added in the code editor.

These are added at the position where the screen cursor was when the code wizard was started.

cust_no := 
firstname := 
lastname := 
compnam := 
street := 
city := 
postcode := 
tel_no := 
email :=