|Bookshelf Home | Contents | Index | PDF|
The print template references applets associated with the view and is how you specify what data appears in the printed document. For information on print templates, see Creating Print Templates for the Handheld Application. As you design your applets, you should be aware of the print specifications of the printers used in the field. Portable printers typically print on two-inch or four-inch wide paper. You need to design your applets so that the data fits within the limits of the paper width. Keep your documents simple so that they work with different sizes of paper. The following are some guidelines to use when designing your applets to accommodate the smaller paper sizes.
Data from only one business component can be displayed on each line in your document. When you design your form applets, keep in mind that you can display a maximum of two columns of data in form applets. You can specify that each column of data is preceded by an optional caption column. This means you can have up to four columns displayed in your document—two data columns and two caption columns. Alternatively, you may have no captions, and simply display one or two columns of data.
Limitations on multiple columns in printed output are largely hardware dependent. In printing 7 fields on a 40 column printer, physical limitations allow only 4-5 characters per field (40 - (7-1))/7 = 4.85. To print more than 4 columns, an 80 column printer is recommended. Generally, the capabilities of impact printers are lower than those of Thermal printers.
When specifying the width of a column, you can either specify it with a unit of measurement or as a percentage of the total page width. For example, you can specify that the first column is 20 mm, and the second column is 40 mm. If the width of the paper you print to is narrower than 60 mm, the column widths automatically adjust to fit the printable width as a proportion of the specified width. Therefore, the first column will always be 33 percent, and the second column will be 67 percent of the paper width. The minimum width for a column is 8 mm, which includes a 3 mm gutter margin between columns.
On narrow paper widths, data from a field may not all fit on one line. Data that does not fit can be specified, in the Applet tag, to wrap to the next line and keep wrapping until the data in that field is completely displayed. The printable width of the page is equal to the paper width minus the left and right margins (PaperWidth - [LeftMargin + RightMargin]). These parameters are set in the setup.ini file. For more information on setting these parameters, see Print Configuration Settings.
|Siebel Consumer Goods Handheld Guide|