Administration > System initialization > Report settings > Macros > Macro definition > Macro output - robinfeng/beashelp GitHub Wiki

宏输出



The macro output defines how the report created is output.

help-hinweisNote: Normally the macro output does not need to be specified. beas controls output independently. However, the default behavior is deactivated if a macro output has been defined.

What is the purpose of macro output control?

help-beispielExample:

The printing of an invoice should run as follows if it was started using "Print":

  1. The document is generated via API "B1DocumentGenerate".

  2. The document is generated using Crystal Reports. This document accesses the tables created by the API.

  3. The first page of the document should be output on printer 1, tray 1. A variable "Original" is also set.

  4. The first page of the document should be output on printer 1, tray 2.

  5. The document should also be output again on Printer1, Tray2. The variable Original is still set to No, as a result of which the word Duplicate is printed on the document.

  6. Lastly, the document should also be sent by email.

Description of the input screen

makroausgabe1

Name Description Number Macro output number (used for sorting – this is run in this order) Description For internal use: Description of the macro output step Run at This output step is only executed if the macro is called using the corresponding icon, e.g. only if "Print" or "Fax" has been selected. Further details for the corresponding process can be stored under Print, Fax and Email tool-zahnrad using the Settings icon. Run if A beas script can be stored here. Macro output is only executed if the script returns "True". Start script beas script executed before the macro is output. End script beas script executed after the macro is output. Command This is used to define how the output is executed. see next section. Number of copies (Only for PRINT type) How often should the document be printed? This setting is forwarded directly to the printer driver. Behind the orange „c“ a script can be deposited. For example, the number of copies can be entered: Use the variable value: eg. set number of copies to 5: setvar=value=5 Save in File (Not for printing) What filename should the file be saved under? Delete File Automatically Files are stored in the attachments directory to prevent too many files from being produced.

Command The command is used to define how the output is executed. Output is independent of the call. In this way, you can generate an email on printing. Name Description Automatic The output depends on the call type. For View – view, for Excel – Excel, for Print – printout, etc. Default setting: Automatic Display The report is displayed. Print The report is printed. Save The report is saved. Fax The report is faxed. Email The report is emailed. Only Script No output. Only start and end script is executed.


返回 主页

⚠️ **GitHub.com Fallback** ⚠️