[]
Every organization needs to maintain important documents such as financials, legal contracts and agreements, resources and logistics, recruitments and various others. Such documents contain similar type of static content with dynamic values like dates, costs, names, numbers etc. Creating and modifying these documents every single time consumes a considerable amount of time and effort. Also, the chances of manual error cannot be eliminated altogether. Therefore, the need for Data or Report Templates.
Note: Please note that 'Report Templates' and 'Data Templates' are two names for the same feature and can be used interchangeably.
The template layout can be created in Word which can contain static content as well as placeholder fields for dynamic values. When the template is processed by using GcWord API, it is bound to a data source which populates the placeholder fields with actual data and generates the final Word document with advanced layouts.
Lets take a simple example where a placeholder field is defined in mustache braces {{ }} in a template layout:
Hello {{ds.name}} Hello John
Here, ds is the name of data source and John is the value in 'name' data field.
Some of the powerful features provided by GcWord Report Templates are as follows:
Flexible: Highly flexible template syntax and API to bind Word documents to data from data source. It supports advanced formatting and layout options.
Document Automation: Automates the process of generating structured documents with increased accuracy.
Efficient: Provide extended reusability, meaning that the templates can be used with minor modifications, or as it is time and again, saving both time and effort.
Multi-platform: Supported on Windows, Linux and macOS.
The GcWord template layout is a pre-defined and formatted Word document. It is used as an input to create the resultant Word document with required data from data source. In the following sections, you will find GcWord Report Templates being used in diverse use-cases.
The below examples use short notation for template tags. To know more about short notations, refer Template Tags.
Use Case 1 - Rental Agreement
In this use case, we have created a template layout in Word for House Rental Agreement which contains placeholder fields for all the dynamic values like, the landlord's, tenant's and rental information. The value of placeholder fields is populated by the data source upon template processing. Notice that the currency and date formatters are also used for relevant fields.
You can also download the Template layout used in below example.
RentalAgreement[Template].docx
The Rental Agreement generated after template processing from the above Template is given below:
Use Case 2 - Consulting Agreement
In this template, a Consulting Agreement has been set up between the Consultant and Client. The generic content of the agreement is kept static whereas the dynamic content like consultant and client details, dates, scope of work is incorporated as placeholder fields.
You can also download the Template layout used in below example.
ConsultingAgreement[Template].docx
The Consulting Agreement generated after template processing from the above Template is given below:
Use Case 3 - Lease Agreement
This use case depicts a template for Lease Agreement between Lessee and Lessor as two parties. The placeholder fields are defined for unique information about the parties which is replaced by actual data from data source after template processing.
You can also download the Template layout used in below example.
The Lease Agreement generated after template processing from the above Template is given below:
Use Case 4 - Address Labels
In this example, we have created a template layout for address label in Word which contains placeholder fields for dynamic values like, name, address, state and phone number. These address labels need to be created for various people of an organization. Hence, the address label template is batch processed so that a separate document is created for each data source item.
You can also download the Template layout used in below example.
The Address labels generated after batch processing of template are given below: