![]() |
![]() |
![]() |
![]() |
![]() |
The Print Dialogs in the TTCN Suite
When you print a TTCN document, the main difference between printing from the Organizer and printing from the TTCN Suite is:
- If you have more than one TTCN document included in the Organizer, you may select which of the documents to print. In the TTCN Suite, it is only possible to print a document that is currently displayed in the active Browser.
See also The Print TTCN Dialog in the Organizer.
Printing in the TTCN Suite in Windows
In Windows, the print dialogs are Windows standard. Besides the actual Print dialog there are also Print Setup and Print Preview dialogs.
To open a print preview dialog:
Printing in the TTCN Suite on UNIX
On UNIX, you can select which Browser parts and items, for example a single table or sets of tables, to include in the printout. The selections may be arbitrary - they will be printed as a coherent document anyway. It is also possible to change the page numbering of the printout.
The settings in the print dialog will be described below:
- Log device
- Controls the log device for the print function. The default value is Screen, but the log can be directed to a named file (File) or turned off altogether (None).
- For more information, see The TTCN Suite Logs.
- Output device
- If you specify the output device to be a printer, you also have to fill in a print command. If you want to print to a file, you will have to specify the destination. See also Printing PostScript Files.
- Burst page off
- Double sided
- If this option is set, the TTCN document will be printed in a page format suitable for a double-sided copying, otherwise it will be printed in a single-sided format. The appearance of both formats is controlled by resources and can therefore be changed (see the file <Itex.sample> in the TTCN Suite directory).
- First page number
- Printing page ranges
If a TTCN document contains ten pages numbered 1 to 10, then Start page = 3 and End page = 3 will cause only page 3 to be printed.
Printing PostScript Files
The editable field of the Print dialog not only allows to change the name of the printer or to apply flags to the print command. It is also possible to insert the name of a filter for the produced PostScript code. In the public domain there exist a package of programs called pstools that make various magic operations with a PostScript file. The following example will print four TTCN Suite pages on each A4 page (the syntax of pstops is somewhat hard to read though):
pstops `4:0@0.5(0.8cm,14cm)+1@0.5(10.5cm,14cm)\
+2@0.5(0.8cm,0cm)+3@0.5(10.5cm,0cm)' | lprOther filters are able to print double sided intended to bind into a book, print odd pages first etc.
By using a PostScript viewer as Ghostview instead of the normal print command, the printout of the TTCN document can be viewed on screen rather than being printed:
ghostview -The text in this field is controlled by the resource Itex.print.commandPrefix. This is by default lpr -P or lp -s depending on platform but can be altered (note that the content of the environment variable PRINTER/LPDEST is concatenated to this string). See Customizing the TTCN Suite (on UNIX) which contains a description on how to modify resources in the TTCN Suite.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |