4D Plugin API


PA_ClosePrinterSession

Parameter Type Description
This command does not require any parameters

Description

The routine PA_ClosePrinterSession cancels the exclusive access to the PrintManager the 4D Plug-in has previously obtained with PA_OpenPrinterSession or a successful call to PA_TryToOpenPrinterSession .

A call to PA_OpenPrinterSession ( or a successful call to PA_TryToOpenPrinterSession ) must be counter-balanced by a call to PA_ClosePrinterSession . Otherwise, the PrintManager will be unavailable to all the other processes until the end of the 4D work session.

On Macintosh, this routine calls internally PrClose, so you do not need to call it yourself.

Example

See PA_OpenPrinterSession for an example.

 

See Also

PA_OpenPrinterSession , PA_TryToOpenPrinterSession .

Error Handling

PA_GetLastError

always returns eER_NoErr