Please enable JavaScript to view this site.

TIFF Image Printer

Description

The collection of wait functions allows you to synchronize and control the flow of documents being printed with your application. The WaitForJobsSpooled method should be called after the document has been printed and WaitForJobsSpooling has been called to verify that a print job actually entered the printer queue.

In many cases, the document needs to be completely spooled to the printer before either the document or the printing application can be closed. Closing either too early in the process can cause the application to cancel the print job, or send an incomplete print job.

Depending on the behaviour of the printing application this method may not need to be called at all. One example of this is the Microsoft Word automation object where background printing and the BackgroundPrintingStatus flag can be used to determine when the file has been completely spooled to the printer and it is safe to close the document and/or the application. In comparison, when automating printing with Microsoft PowerPoint the WaitForJobsSpooled method needs to be called in order to determine when it is safe to close the PowerPoint file.

Syntax

expression.WaitForJobsSpooled(Timeout)

where expression is an IPNPrintSession object.

Returns Boolean True if the print job spooled within the timeout period, and False if it did not.

Parameters

Integer Timeout

The length of time, in milliseconds, to wait for the print job to be spooled.

See Also: WaitForJobsSpooling WaitForJobsPrinted WaitForJobsCompleted