Defining print specifications for a DataWindow object

When you are satisfied with the look of the DataWindow object, you can define its print specifications.

StepsTo define print specifications for a DataWindow object:

  1. In the DataWindow painter, select Properties from the DataWindow object’s pop-up menu.

  2. In the Units box on the General page, select a unit of measure.

    It is easier to specify the margins when the unit of measure is inches or centimeters.

  3. Select the Print Specifications tab.

    The Print Specifications properties use the units of measure you specified on the General page.

  4. Specify print specifications for the current DataWindow object.

    See Table 19-4 for more information.

Table 19-4: Setting print specifications for DataWindow objects

Setting

Description

Document Name

Specify a name to be used in the print queue to identify the report.

Printer Name

Specify the name of a printer to which this report should be sent. If this box is empty, the report is sent to the default system printer. If the specified printer cannot be found, the report is sent to the default system printer if the Can Use Default Printer check box is selected. If the specified printer cannot be found and the Can Use Default Printer check box is not selected, an error is returned.

Margins

Specify top, bottom, left, and right margins. You can also change margins in the Preview view while you are actually looking at data. If you change margins in the Preview view, the changes are reflected here on the Print Specifications page.

Paper Orientation

Choose one of the following:

  • Default: Uses the default printer setup.

  • Portrait: Prints the contents of the DataWindow object across the width of the paper.

  • Landscape: Prints the contents of the DataWindow object across the length of the paper.

Paper Size

Choose a paper size or leave blank to use the default.

Paper Source

Choose a paper source or leave blank to use the default.

Prompt Before Printing

Select to display the standard Print Setup dialog box each time users make a print request.

Can Use Default Printer

Clear this check box if a printer has been specified in the Printer Name box and you do not want the report to be sent to the default system printer if the specified printer cannot be found. This box is checked by default if a printer name is specified.

Display Buttons - Print Preview

Select to display Button controls in Print Preview. The default is to hide them.

Display Buttons - Print

Select to display Button controls when you print the report. The default is to hide them.

Clip Text

Select to clip static text to the dimensions of a text field when the text field has no visible border setting. The text is always clipped if the text field has visible borders.

Override Print Job

When you print a series of reports using the PrintOpen, PrintDataWindow, and PrintClose methods, all the reports in the print job use the layout, fonts, margins, and other print specifications defined for the computer. Select this check box to override the default print job settings and use the print settings defined for this report.

Collate Copies

Select to collate copies when printing. Collating increases print time because the print operation is repeated to produce collated sets.

Print Preview Shows Outline

Select to display a blue outline to show the location of the margins.

Print Shows Background

Whether the background settings of the DataWindow and controls are included when the DataWindow is printed.

Preview Shows Background

Whether the background settings of the DataWindow and controls display in the print preview.

Newspaper Columns Across and Width

If you want a multiple-column report where the data fills one column on a page, then the second, and so on, as in a newspaper, select the number and width of the columns in the Newspaper Columns boxes. See “Printing with newspaper-style columns”.