Description: Runs when the user starts the Print action on a desktop DBForm.
Execution: When a valid OnPrint formula exists, it runs instead of the standard PDF export. The normal save dialog and PDF generation are not started after the formula, even if formula execution fails.
Arguments and variables:
Argument_DataID: identifier of the current DBForm record.
The current DBForm entry values are also available by their entry names.
Result: Any value assigned to Result has no effect. Use the formula to implement the required custom print or export operation.
Availability: Desktop DBForm Print action. No corresponding web invocation was found in the current source.
Example:
ShowMessage("Custom print for record " + Argument_DataID);