LPRINT

Concept Link IconSee also

Send a message to a printer.

If executed in a WebVue session context this instruction is processed by the computer that hosts the web back end that will be able to print on a configured printer connected to it.

WebVue support - Yes.

Syntax

IntVal = LPRINT(Num, Mess1, Mess2.....Mess9);

Return type: INTEGER.

Argument

Meaning

Num

The number of the printer from the configuration menu. Any numeric type.

Mess1 - 9

The messages to be printed (maximum 9) All variable types are supported.

Execution

Return: 1 if successful, else 0.

When printing the value of a database register variable, the output format is defined by the format property in the variable configuration.

Example

SUB main()

'Declare variables

DIM intReturn as Integer;

DIM sngRegister as Single;

 

sngMesure=12;

intReturn = LPRINT (1,"Example of using LPRINT: value = ",sngRegister ,34);

'Print this text on printer 1: "Example of using LPRINT: value = 12"

END SUB