Office Templates
Document generation from Office templates.
Overviewβ
Office Templates allow you to automatically generate Word, Excel, or PowerPoint documents from templates containing bookmarks or merge fields filled with form data.
Benefitsβ
- Automation: Automatic document generation
- Consistency: Standardized document format
- Time savings: No manual data entry
- Dynamic: Up-to-date form data
Template Typesβ
Word Templatesβ
Using bookmarks to insert data:
- Simple fields
- Dynamic tables
- Images
- Conditional formatting
Excel Templatesβ
Filling cells and tables:
- Spreadsheets
- Charts
- Data tables
PowerPoint Templatesβ
Creating presentations:
- Dynamic slides
- Variable content
Configurationβ
Create a Word Templateβ
- Create a Word document
- Insert bookmarks (Insert β Bookmark)
- Name bookmarks according to form fields
- Save the template
Bookmark example:
Document_Title
Creation_Date
Manager
Description
Associate the Template with the Formβ
In Process Studio:
- Open the form
- Office Templates tab
- Add a new template
- Select the template file
- Configure options
Bookmarks and Fieldsβ
Simple Bookmarksβ
Inserting a field value:
Bookmark: Document_Title
Value: {Form title}
Bookmarks for List Valuesβ
Display localized text:
// Retrieve the localized value
var localizedValue = GetLocalizedListValue("Status", currentLanguage);
Bookmarks for Tablesβ
Insert a detail table:
Bookmark: Table_Rows
Data: Detail table rows
Document Generationβ
Automatic Generationβ
During a workflow transition:
// Automatically generate the document
var templateId = "template_id";
var generatedDoc = GenerateOfficeDocument(templateId, documentId);
Manual Generationβ
Button in the form:
- User clicks "Generate document"
- System generates the file
- File is added to attachments
Use Casesβ
PDF Contractβ
Generate a contract with form data:
- Contracting parties (fields)
- Terms (text)
- Signatures (images)
- Date and reference
Monthly Reportβ
Excel report with:
- Statistics (calculations)
- Data tables
- Charts
Form Letterβ
Personalized Word letter:
- Header with logo
- Recipient (directory)
- Message body (fields)
- Signature
Best Practicesβ
- Test templates: Verify with real data
- Clear naming: Explicit bookmarks
- Version management: Version templates
- PDF format: Convert to PDF for distribution
Referencesβ
Tablesβ
OfficeTemplates: Template definitionsOfficeTemplateMappings: Bookmark/field mappings