Print  ReplaceText

Chapter 9: Methods for the DataWindow Control

PrintCancel

Cancels printing and deletes the spool file, if any. There are two syntaxes.

To

Use

Cancel printing of a DataWindow or DataStore printed with the Print function.

Syntax 1 For DataWindows and DataStores

Cancel a print job that you began with the PrintOpen function.

For a description of PocketBuilder system print commands, see the PowerScript Reference.

Syntax 2 For canceling a print job


Syntax 1 For DataWindows and DataStores

Description

Cancels the printing of a DataWindow or DataStore that was printed using Syntax 1 of Print.

Syntax

PowerBuilder DataWindow control, DataStore object, or child DataWindow

integer dwcontrol.PrintCancel ( )

Returns

Returns 1 if it succeeds and -1 if an error occurs. If dwcontrol is NULL, PrintCancel returns NULL.


Syntax 2 For canceling a print job

Description

Cancels printing of a print job that you opened with the PrintOpen function. The print job is identified by the number returned by PrintOpen.

Syntax

PowerBuilder DataWindow control

integer PrintCancel ( long printjobnumber ) 

Returns

Returns 1 if it succeeds and -1 if an error occurs. If printjobnumber is NULL, PrintCancel returns NULL.





Copyright © 2004. Sybase Inc. All rights reserved. ReplaceText

View this book as PDF