Win32Prn() > Document methods xHarbour Developers Network  

oWin32Prn:endDoc()

Terminates the current print job.

Syntax

:endDoc( [<lAbortDoc>] ) --> lSuccess

Arguments

<lAbortDoc>
This logical parameter defaults to .F. (false) which informs the spooler that print output can be sent to the printer. When .T. (true) is passed, all spooled print output is discarded.

Description

Method :endDoc() must be called as the last method of a print job. It signals the spooler that the xHarbour application produces no more print output. The spooler then sends print output to the printer, unless <lAbortDoc> is set to .T. (true).

The method returns a logical value indicating success of the operation.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe