2.7.69 word2ogw


Menu Information

Add Word Bookmarks to Analysis Template

Brief Information

Add bookmarks from a word template to an analysis template

Additional Information

Minimum Origin Version Required: 2016 SR0

Command Line Usage

1. Add bookmarks from a specific Word Template to a specific analysis template

string TemplatePath = system.path.program$ + "Samples\Batch Processing\Sensor Analysis.ogw";

string wordPath$ = system.path.program$ + "Samples\Batch Processing\Sensor Analysis Report.dotx";

word2ogw word:=wordPath$ bookmark.Sel:={fittedGraph, RSquare} mode:=template template:=TemplatePath$;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Word template word

Input

string

<unassigned>

Specify the Word Template (.DOCX, .DOCM, .DOC, .DOTX, .DOTM, .DOT) to be loaded.

Select Bookmarks bookmark

Input

TreeNode

<unassigned>

Specify the bookmark entries to be added to analysis template by treenode:

  • .Sel
    Select bookmark entries.
Add to mode

Input

int

0

Specify the source of analysis template workbook to add Word bookmarks. Option list:

  • active{0}:Active Analysis Template Window
    Use active Analysis Template workbook (.OGW).
  • template{1}:Load Analysis Template
    Load a specific Analysis Template workbook (.OGW) from disk.
Analysis Template template

Input

string

<unassigned>

This is available only when Add to is selected as Load Analysis Template. Specify the analysis template to be loaded for adding Word bookmarks.

Description

This function will add bookmarks from a word template to an analysis template. Batch processing with such analysis template can output results to a Word Template for reporting.

Algorithm

References

Related X-Functions

BatchProcess


Keywords:batch processing