Function NnetPsDelQ() Foundation

Removes a printer serviced by a print server from a queue.

Syntax
NnetPsDelQ( <cPrintServerName>        , ;
            <nPrinterNumber>          , ;
            <cPrintQueueName>         , ;
            [<lAbortCurrentJob>]      , ;  // Default: .F.
            [<nAbortMode>]            , ;  // Default: PSJ_RET2Q
            [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
          ) --> lSuccess
Return

Returns .T. if the printer with number <nPrinterNumber> could be removed from the print queue <cPrintQueueName>.

Description

If <lAbortCurrentJob> is set .T. the printer is immediately removed from the queue even if the current job is not finished. In this case <nAbortMode> determines whether to return the current job to the queue (= PSJ_RET2Q) or to discard the job (= PSJ_THROWAWAY).

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.