Word Template
A Logi template definition acts as a "blueprint" showing how the Word template will be filled by the Logi Server Engine at runtime. Filling a Word template with data starts with the creation of the Word template; once it has been created, three more steps are required.
The following topics discuss how to create and use a Logi Template definition with Microsoft Word templates:
- Adding a Word Template to Your Application
- Creating a Logi Template Definition
- Working with Hierarchical Data
For information about how to call Template definitions from within Logi applications, see Form-based Reporting.
About Templates
The term "template" applies here in several different ways, so let's clarify its use at the outset:
-
A Word template is a special variety of Microsoft Word document,
saved as either a .dotx or a .dot file, depending on your
version of Word. It looks like the finished document but without any
data; it has form fields reserved for the data. This is also referred to
in the document as the "target template".
-
A Logi Info Template definition is an .lgx file, similar
to a Report or Process definition, created with Logi Studio. It's a set
of instructions to the Logi Server Engine to retrieve data and it maps
that data into the fields in the target template.
- Other uses of "template", such as Word document formatting templates or Avery Label templates, do not apply in this document.
The rest of this topic assumes that you've already created your Word template.