Template Keywords
Text - column
The /column/ keyword shows text from a field of information of a course in SM-Reports with the current font and alignment.
/column/,<field name>,<course index>,<left>,<top>,<right>,<bottom>
The field name must be a SM-Reports field name predefined for use on a report template. The field names are listed here and are not the names of the fields in the Set Report Definition command.
The course index value determines which course is used.
The left and top values specify the top left corner, and the right and bottom the bottom right corner of the frame.
The font is determined by the previous /serif/ or /sans/ keyword. The alignment is determined by the previous /left/, /right/, /centre/, /middle/ or /sideway/ keyword.
Examples
This shows the name of the teacher for the first course with the serif font at 12 point.
/serif/,12
/left/
/column/,teacher,1,100,100,1000,150
This shows the grade of the student for a maximum of eight different subjects. Note how the top and bottom values increase by 10 mm on each line. If a student does less than eight subjects, the remaining lines are left empty.
/serif/,10
/middle/
/column/,grade,1,0,0,100,100
/column/,grade,2,0,100,100,200
/column/,grade,3,0,200,100,300
/column/,grade,4,0,300,100,400
/column/,grade,5,0,400,100,500
/column/,grade,6,0,500,100,600
/column/,grade,7,0,600,100,700
/column/,grade,8,0,700,100,800
- When a report has more than one course on each page, the /column/ keyword is used for each item of information that comes from each course.
- The order of the subjects is determined by the Set Course Order command in SM-Reports.
- The /column/ keyword should not be used on reports that have a single page for each course.