revPrintField | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | printing library | ||||||
Summary | Prints the contents of a field. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Keyword: field Message: startup, openBackground, preOpenStack, openStack, preOpenCard Command: revPrintReport, answer printer Glossary: application, standalone application, evaluate, execute, object reference, command, main stack, group, select, Standalone Application Settings, message, statement, handler, LiveCode custom library Library: library, Printing library | ||||||
Security | printing | ||||||
Description | Use the revPrintField command to print the formatted contents of a field from within a handler.
Instead, use a form that evaluates to a field reference, like this:
The revPrintField command is equivalent to selecting the field and choosing File ? Print FieldÉ from the menubar. If the field contains any expressions of the form <%expression%>, the expression is evaluated and replaced with the value before the field is printed. For example, if the field contains the text Today's date is <%the long date%> the printed text reads Today's date is Friday, February 15, 2002 (This assumes, of course, that the revPrintField command is executed on that date). You can also use the special value <%pageNumber%> in the field: this value is replaced with the page number. To show the standard print dialog box, use the revShowPrintDialog command before the revPrintField command.
| ||||||
Tags | printing |