|
In the DataWindow Painter, you can create runtime print specification:
The name you want to assign the print job. The default is none
The print margins in the unit of measure specified for the DataWindow
The print orientation
TIP: The default unit of measure for a DataWindow object is PowerBuilder units. However, it is easier to specify print margins if you change the unit of measure to inches or centimeters. To change the unit of measure, use DataWindow Style on the Design Menu.
To create runtime print specifications:
- Select Print Specifications from the Design Menu in the DataWindow Painter.
- Enter the name you want to print at the top of each page of the DataWindow definition in the DataWindow Name box. The name you enter will display in the print queue. The default name is none.
- Specify the top, bottom, and side margins in the Margins box. The default is 0 for all margins and the unit of measure is the unit of measure specified for the DataWindow..
- Select a print orientation. The default is the current printer setting.
|
Landscape
|
Print the contents of the DataWindow across the length of the paper.
|
|
Portrait
|
Print the contents of the DataWindow across the width of the paper.
|
|
Prompt with Dialog
|
Display the printer setup dialog for the current printer and allow the user to select the orientation.
|
|
TIP: When you select Print with Dialog, the user can cancel the print job by pressing Esc when the printer setup window displays,
- Click OK to save the runtime print specifications with the DataWindow definition..
|