Skip to content

Class: PrintDialog

Properties | Events | Methods | Index of Classes

A wrapper for the Windows Print dialog box used by the CrystalReport class

Hierarchy

cObject > PrintDialog

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: PRNT_DLG.PKG

Mixins: Print_Dialog_Mixin

Description

This class is obsolete. See the documentation of your reporting tool for an appropriate substitute.

The PrintDialog class is a wrapper for the Windows Print dialog box. This dialog box is used to specify the properties of a print job. This class is intended to be used with the CrystalReport class exclusively. The CrystalReport method CrystalReport.SelectAndSetPrinter is normally used to invoke the print dialog. The CrystalReport package creates a global object named WinQLSelectPrinter for you to use.

Object oReport is a CrystalReport
    :
    Procedure OnInitializeReport
        Integer iResult iFromPage

        Get SelectAndSetPrinter To iResult
        If iResult Begin
              Get FromPage Of WinQLSelectPrinter To iFromPage   
              :
        End
    End_Procedure

End_Object
Col 1 Col 2
Note: This class was not designed to be used outside of the CrystalReport class. Developers who choose to use this class beyond its intended purpose will need to review the class code in the package and be familiar with the Windows API. Improper use of this class can result in memory leaks.