Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
a_f:a:print_document [2022/09/01 01:23] – ↷ Page moved from a_f:3100_actions:print_document to a_f:a:print_document administratora_f:a:print_document [2023/05/09 01:43] (current) sean
Line 1: Line 1:
-{{tag>Actions Action_List Process Documents}}+{{tag>Index Action Action_List Process Documents}}
 ====== PRINT DOCUMENT ====== ====== PRINT DOCUMENT ======
  
Line 8: Line 8:
 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, 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> PRINT DOCUMENT Statement.StatementDocument</code>+<code aim>PRINT DOCUMENT Statement.StatementDocument </code>
  
 The ''TO'' keyword indicates the name of the network server where the document will be sent for printing. If it is omitted the document will be sent to the default printer. The ''TO'' keyword indicates the name of the network server where the document will be sent for printing. If it is omitted the document will be sent to the default printer.
Line 18: Line 18:
 Example: Example:
  
-<code aim> PRINT DOCUMENT StaffReport 5 COPIES</code>+<code aim>PRINT DOCUMENT StaffReport 5 COPIES </code>
  
-<code aim> PRINT DOCUMENT StaffReport TO 'Network Printer 1' 5 COPIES </code>+<code aim>PRINT DOCUMENT StaffReport TO 'Network Printer 1' 5 COPIES  </code>
  
   * ''PRINT DOCUMENT'' (Id() | StringLiteral()) [ ''TO'' ArithmeticExpression()] [ <INTEGER> ''COPIES'' ]   * ''PRINT DOCUMENT'' (Id() | StringLiteral()) [ ''TO'' ArithmeticExpression()] [ <INTEGER> ''COPIES'' ]
Line 30: Line 30:
 Consider the following rules: Consider the following rules:
  
-<code aim> FIND Person WHERE Person.Name='John Smith' +<code aim>FIND Person WHERE Person.Name='John Smith' 
- PRINT DOCUMENT AccountOpeningLetter</code>+ PRINT DOCUMENT AccountOpeningLetter </code>
  
 where ''AccountOpeningLetter'' is the name of the document template. If this template has the following line  where ''AccountOpeningLetter'' is the name of the document template. If this template has the following line 
  
-<code>Dear <<Person.Name>>, </code>+<code>Dear <<Person.Name>>,  </code>
  
 it will be replaced with the line  it will be replaced with the line 
  
-<code>Dear John Smith </code>+<code>Dear John Smith  </code>
  
 when the template is printed. when the template is printed.
  
  • Last modified: 2022/09/13 18:11