Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PrintGetPrinters – PB Docs 2019 – PowerBuilder Library

PrintGetPrinters – PB Docs 2019

PrintGetPrinters

PowerScript function

Description

Gets the list of available printers.

Syntax

Return value

String. Each printer is listed in the string in the format
printername ~t drivername ~t port ~n.

Usage

The return string can be loaded into a DataWindow using ImportString
or separated using the ~n as shown in the example.

Examples

This example parses printer names from the return string on the
PrintGetPrinters call, then places each printer name in an existing
SingleLineEdit control. If you have more printers than SingleLineEdit
boxes, the last SingleLineEdit contains a string for all the printers that
are not listed in the other SingleLineEdits:

See also

ImportString method for DataWindows in the section called “ImportString” in DataWindow Reference.

PrintGetPrinter

PrintSetPrinter


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x