Printer
property (DataWindow object)
Description
The name of the printer for printing the DataWindow as specified
in the system’s printer selection dialog box.
Applies to
DataWindows
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.DataWindow.Printer = "printername" |
Describe and Modify argument:
|
1 |
"DataWindow.Printer" { = printername }" |
|
Parameter |
Description |
|---|---|
|
printername |
Name of the printer you want to use for your |
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 2 3 |
string ls_dwprinter ls_dwprinter = dw1.Object.DataWindow.Printer ls_dwprinter = dw1.Describe("DataWindow.Printer") |