Function NnetPsAno() Foundation

Assigns a bindery object to a print server for notifications.

Syntax
NnetPsAno( <cPrintServerName>        , ;
           <nPrinterNumber>          , ;
           <cObjectName>             , ;
           [<nObjectType>]           , ;  // Default: OBJ_USER
           [<nFirstNotification>]    , ;  // Default: 30
           [<nNextNotification>]     , ;  // Default: 60
           [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
         ) --> lSuccess
Return

Returns .T. if the object <cObjectName> could be assigned to the print server <cPrintServerName>.

Description

The function assigns a bindery object (normally of type OBJ_USER) to a print server. Whenever an error condition occurs during printing on the printer <nPrinterNumber> (e.g. printer out of paper) the print server sends a notification message to the assigned object. Since the object normally is a user <cObjectName> is the name of that user.

The first notify message is sent after <nFirstNotification> seconds and subsequent messages are sent after <nNextNotification> seconds until the error condition is resolved.

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.