version 6.8 (Modified)
AP PrintRec to text (text) Longint
| Parameter | Type | Description | |
| text | Text | Text that contains the parameters | |
| Function result | Longint | Error code | |
| -1, if you do not have access to the parameters | |||
| -2, if the text cannot be re-allocated | |||
| -3, if the text cannot be correctly interpreted |
Description
Compatibility note: Starting with version 6.8 of 4D Pack, this command no longer works under MacOS.
Under Windows, this command returns a text variable containing the Windows printing settings.
You can then analyze byte by byte these settings, modify them, then use them with the AP Text to PrintRec. Thanks to this command, you can use the same printing settings between two working sessions or use different settings according to the pages.
The error code returned indicates if the command has been executed properly.
See Also