Generate Document From Word Template

Introduction

The GenerateDocumentFromWordTemplate activity can be used to load a word template that contains various placeholders. The placeholders in the document will then be replaced and the document will be stored in the desired file format.

Input Data

The following input data can be configured in addition to the default input data of a https://itsense.atlassian.net/l/c/zBezM4wq.

Word template name

The name of the word file to be opened. The path is relative to the Templates/WordTemplates folder.

Replacements

A dictionary containing the keys, aka the placeholder in the document, and the appropriate replacement.

Culture

The culture of the document as an integer. So if you would like to load the German template, add 1032.

SaveFormat

A drop down value indicating the format. Either PDF, Doc, Docx or Text.

Output Data

Result

A byte[] representing the document.

Base64Result (From 8.3.1)

The Result byte[] as a base64 string.

The result is fetched as follows:

var base64Value = NameOfActivity.Base64Result;

© ITSENSE AG. Alle Rechte vorbehalten. ITSENSE und CoreOne sind eingetragene Marken der ITSENSE AG.