PSInit()

Syntax

Function PSInit()
TPageScript:New()

Returns

A numeric value indicating the error code, or zero when no error is detected.

ErrorCode may have one of the following values :

0 (zero) PageScript 32 is correctly initialized.
1 No printer installed. PageScript 32 cannot print.
2 Could not load the DLL
3 Reserved for future use
4 Reserved for future use
5 DEMO / BETA version timed out.

Description

PSInit initialize PageScript 32 and checks for installed printer drivers. If none are found, PSInit() returns 1. 0 is returned on a successful call.

Arguments

None

Note

You must call this function at application start, before calling any other PageScript 32 functions and procedures.