Printer DataWindow object property
Description
The name of the printer for printing the DataWindow as specified
in the system’s printer selection dialog box.
Controls
DataWindows
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.DataWindow.Printer = "<span>printername</span>" |
Describe and Modify argument:
1 |
"DataWindow.Printer" { = <span>printername</span> }" |
Parameter |
Description |
---|---|
printername |
Name of the printer you want to use for |
Usage
The printer you select for a DataWindow does not affect the PowerBuilder default
printer or the system default printer. To specify a network–connected printer,
you must use a fully specified network printer name:
1 |
dw1.Object.DataWindow.Printer = "\net-printpr-6" |
If you specify a DataWindow printer, but the printer is not
found, the DataWindow engine does not attempt to print to a default
device.
Examples
The following example changes the DataWindow printer
(but does not affect the system default printer device):
1 |
dw1.Modify ('DataWindow.Printer="My LaserJet 3" ') |
You can display the DataWindow printer with either
of the following calls:
1 |
string ls_dwprinter |
1 |
ls_dwprinter = dw1.Object.DataWindow.Printer |
1 |
ls_dwprinter = dw1.Describe("DataWindow.Printer") |