Purpose

.Print() allows you to print a specified file that resides on the Windows Client. This is only available for the Client Object.
 

Object Type

Client

Syntax

Variable = CLIENT.PRINT(Filename)
 

Operation

Variable is any numeric variable for the returned code
Filename is the name of the file to be printed
 

Remarks

Printing takes place on the default printer of the Windows Client’s machine. The execution is always synchronous.

The kernel waits until it receives the return code before proceeding.  

The return code indicates success or failure. If 0, the execution was successful. An error number and an error message may be returned. The error number is stored in @ERR and the message can be found in @ERRTXT. Errors can occur on either the kernel or the client. If the error occurs on the Window's Client machine, the error messages are the standard error message numbers defined in "errno.h." If the error occurs on the kernel, the error messages are kernel error messages.
 

Example

To print the file "specification.doc" residing in the Windows Client’s installation directory, using the application associated with a .doc extension:

#RC = CLIENT.Print("specification.doc")  
 

Comment on this topic

Topic ID: 510023