RUN REPORTER: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
Created page with "{{Up}} {{Command|syntax=RUN_REPORTER <reporter type> [<custom template>] [<render type>] |description=:Run the reporter. |param1=reporter type (0..."
 
Mikeo (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[:Category:Miscellaneous|{{Up}}]]
[[:Category:Miscellaneous|{{Up}}]]


{{Command|syntax=RUN_REPORTER <reporter type> [<custom template>] [<render type>]
{{Command|syntax=RUN_REPORTER <output file> <reporter type> [<custom template>] [<render type>]
|description=:Run the reporter.
|description=:Run the reporter.


|param1=reporter type (0=part, 1=tool, 2=ops, 3=custom)
|param1=<output file>|param1_desc=Output filename
|param2=custom template (only used if reporter type=3)
|param2=<reporter type>|param2_desc=0=part, 1=tool, 2=ops, 3=custom
|param3=render type (0=op sim, 1=legacy cpr)
|param3=<custom template>|param3_desc=Custom Template Filename (only used if reporter type=3)
|param4=<render type>|param4_desc=0=op sim, 1=legacy cpr (default op sim)
}}
}}


===Example===
===Example===
:RUN_REPORTER 1
:RUN_REPORTER "MyReport.xlsx", 1
:RUN_REPORTER 2, 1
:RUN_REPORTER "MyReport.xlsx", 2, 1
:RUN_REPORTER 3, "MyCustomTemplate.txt"
:RUN_REPORTER "MyReport.xlsx", 3, "MyCustomTemplate.txt"
 
:Note - When using a custom template, you must specify the full pathname of the template file
:unless the template is in the same folder as the macro, in which case just the filename can be used


[[Category:Miscellaneous]]
[[Category:Miscellaneous]]

Latest revision as of 23:45, 14 January 2019

Up

Command

RUN_REPORTER <output file> <reporter type> [<custom template>] [<render type>]


Run the reporter.

Parameters

<output file>
Output filename
<reporter type>
0=part, 1=tool, 2=ops, 3=custom
<custom template>
Custom Template Filename (only used if reporter type=3)
<render type>
0=op sim, 1=legacy cpr (default op sim)

Example

RUN_REPORTER "MyReport.xlsx", 1
RUN_REPORTER "MyReport.xlsx", 2, 1
RUN_REPORTER "MyReport.xlsx", 3, "MyCustomTemplate.txt"
Note - When using a custom template, you must specify the full pathname of the template file
unless the template is in the same folder as the macro, in which case just the filename can be used