AP Text to PrintRec

4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next

version 6.8 (Modified)


AP Text to PrintRec (text) Longint

ParameterTypeDescription
textTextText that contain the parameters
Function resultLongintError code
-1, if you have no access to printing settings
-2, if the text does not contain 120 characters

Description

Compatibility note: Starting with version 6.8 of 4D Pack, this command no longer works under MacOS.

AP Text to PrintRec accepts a text expression containing the Windows printing parameters to be passed as a parameter. These parameters then become the new printing settings.

Use the AP PrValidate function to make sure that these parameters are correct. You should also take into account the byte swapping under Windows in fields that contain integers or long integers.

The error code returned lets you know if the command has been correctly executed.

See Also

AP PrValidate.


4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next