Function NnetPStop() Foundation

Stops a printer serviced by a print server.

Syntax
NnetPStop( <cPrintServerName>        , ;
           <nPrinterNumber>          , ;
           [<nJobMode>]              , ;  // Default: PSJ_HOLD
           [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
         ) --> lSuccess
Return

Returns .T. if the printer <nPrinterNumber> is stopped by the print server <cPrintServerName>.

Description

With <nJobMode> it is specified what to do with a currently printed job. The possibilities are coded using #define constants from XBTSP.CH

PSJ_HOLD

The current job is halted until the printer is restarted (default).

PSJ_RET2Q

The current job is returned to the queue. Note that the Service Restart flag must be set (refer to NnetJFlags()).

PSJ_THROWAWAY

The current job is aborted and discarded.

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.