![]() |
![]() |
![]() |
![]() |
Printing operations
The printing operations panel contains options for printing some text. The first two options
are very simple. In both cases, all that is needed is to specify the text, or the part, which will be printed. If a layout part is chosen in the second choice, all of the parts that it contains will be printed as well.
The next options let the user set up and use a datarep.common.TextPrinter object. A TextPrinter lets the user control how the printed text will appear. It is important to remember that a TextPrinter object must be created before any options are set, and that printing will not occur until the TextPrinter object is sent to the printer. The other options can occur in any order desired. They are
- Set font... allows the user to set the font to any available font from this point onwards.
- Set color... allows the user to set the color of the printed text to any one of a number of choices. The printer must be able to print in color to see the best results.
- Set word wrap... allows the user to choose whether the word wrap is on or off. If the word wrap is off, then lines which are long will be cut off at the right margin. If it is on, then they will be wrapped so as to fit properly.
- Set tab stops... allows the user to specify the size of the tab stops, in inches.
- Set margins... allows the user to specify the top, bottom, left, and right margins for a page, in inches.
- Send form feed... allows the user to send a form feed to the printer. This will cause the printer to print any subsequent text on a new page.
- Send new line... allows the user to force the TextPrinter to start a new line.
- Send text... allows the user to send text to the TextPrinter object.
When a TextPrinter object is created, an operating system-dependent dialog will appear. However, printing will not occur if the TextPrinter object is not sent to the printer.
To repeat, every TextPrinter job must be created and (eventually) sent to the printer. The commands to do this through the Sourcerer are
Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |
![]() |
![]() |
![]() |
![]() |