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

PrintClose – PB Docs 126 – PowerBuilder Library

PrintClose – PB Docs 126

PrintClose PowerScript function

Description

Sends the current page to the printer (or spooler) and closes
the job. Call PrintClose as the last command
of a print job unless PrintCancel function has closed
the job.

Syntax

Argument

Description

printjobnumber

The number the PrintOpen function
assigned to the print job

Return Values

Integer. Returns 1 if it succeeds and
-1 if an error occurs. If printjobnumber is null, PrintClose returns null.

Usage

When you open a print job, you must close (or cancel) it.
To avoid hung print jobs, process and close a print job in the same
event in which you open it.

Examples

This example opens a print job, which creates a blank
page, prints a bitmap on the page, then sends the current page to
the printer or spooler and closes the job:

See Also


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