Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| a_f:a:print_document [2022/09/01 01:23] – removed - external edit (Unknown date) 127.0.0.1 | a_f:a:print_document [2023/05/09 01:43] (current) – sean | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | ====== PRINT DOCUMENT ====== | ||
| + | |||
| + | This action is very similar to the DISPLAY DOCUMENT action, but instead of displaying the document on the screen, it sends the document to the printer of the server. The action has two variations: | ||
| + | |||
| + | '' | ||
| + | |||
| + | The action written in this format prints the contents of the attribute of the specified business object, provided that this attribute is of the Document type. Whatever document is stored in the attribute will be printed – no document processing is performed. For example, | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | The '' | ||
| + | |||
| + | If number of copies is specified the specified number of documents will be printed, otherwise one copy will be printed. | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | Example: | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | * '' | ||
| + | |||
| + | where Id() or StringLiteral() is the name of the document template to be printed. | ||
| + | |||
| + | Before the document template is printed the action will calculate and fill in attribute values used inside tags in the template (see also the “[[: | ||
| + | |||
| + | Consider the following rules: | ||
| + | |||
| + | <code aim>FIND Person WHERE Person.Name=' | ||
| + | PRINT DOCUMENT AccountOpeningLetter </ | ||
| + | |||
| + | where '' | ||
| + | |||
| + | < | ||
| + | |||
| + | it will be replaced with the line | ||
| + | |||
| + | < | ||
| + | |||
| + | when the template is printed. | ||