Function NnetJSrv() Foundation

Retrieves or sets the current print server.

Syntax
NnetJSrv( <cPrintQueueName>         , ;
          <nPrintJobNumber>         , ;
          [<cPrintServerName>]      , ;  // Default: NIL
          [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
        ) --> cPrintServerName
Return

Returns a string containing the name of the print server that will process the job with the number <nPrintJobNumber> or a null string in case of an error.

If <cPrintServerName> is passed to NnetJSrv() and the job <nPrintJobNumber> is already in process the name of the current print server is returned.

Description

Note that <nPrintJobNumber> is not a sequential number of print jobs but a unique value used to identify a job. It can be retrieved using NnetCapJob() or NnetJList().

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.