5 - Create Template
5 - Create Template
NOTE:
Generally, to work with Template we use Secondary window.
To print limited records, we use templates.
Main window is used to print data in table form.
The newly created window is a secondary window. By default window is created at top left of
the layout .
To rearrange it choose Form Painter button then form painter opens. Then adjust the
window to requried height and width. Once adjusted again choose Form painter button to
close it .
On the right handside we have symbol. Select this pen symbol and make horizantal and
vertical lines .
Observe two portions are obtained .( %c1 and %c2). Again I make %c1 into two portions
vertically . Check it in the following screen schot .
First Column
Second column
According to our requirement we can partition the rows and columns to any number .
Now in our case we have total 3 different places to print the data .
1. First row and first column
2. First row and second column
3. Second row and first column ( If no columns are available then the entire row is considered
as one column .So column number is one only)
Now create the text elements as shown below . Right clickà createàtext.
Create the three text elements .
For each text,
1. Give the position where to print
2. what text to be printed .
To give the position select the text and choose Output Options and scroll down and fill Line
and Column
Line Column
Repeat the same for text2, text1 also. Then provide the text in Text1, Text2 and text3.
Select the text1 and go to General Attributes and Choose to give the text which you
want to print .
Text in text3.
Repeat the same for text1 and text2 . Finally save check activate and execute(F8). Again F8.
In Output Device give Lp01 and choose print Preview, we get the following output .