version 6.8 (Modified)
AP Text to PrintRec (text) Longint
| Parameter | Type | Description | |
| text | Text | Text that contain the parameters | |
| Function result | Longint | Error 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