Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

WINWORD$ Template.rtf(Target$, Mode%=0, 1, 2, [InpVar])

Arguments

  • Template.rtf is the name of the RTF template file created by MS Word. The following does apply:
    • It is necessary to include the ".rtf" extension;
    • The file should be stored on the current Applications directory;
    • The RTF document should be checked by Quaestor on any impropper RTF code. Do this through the menu item Tools>RTF Template Check...
  • Target$ is a string expression containing the name of the document to be created (use for instance the TIME() and ORCA() functions for the generation of this name).
  • Mode% are options:
    • Mode% = 0: do NOT start MS Word to show the resulting document;
    • Mode% = 1: start MS Word with the resulting document;
    • Mode% = 2: do NOT start MS Word and leave document as .rtf;
  • InpVar is InpVar is an optional list of parameters used in Template.rtf. While creating the expression, the parser will search the template for any parameters and include these in the expression automatically. Any parameters that are not automatically traced by the expression parser should be included because the parameters in the template will not be determined on evaluation of the expression unless they are in the expression itself.

...