Articles in this section

Upload and apply a color theme

Prerequisites for applying a color theme 

  • VSTO-addin version 5.5.1.1312, or greater.
  • Dynamics version 1.3.
  • Color theme uploaded to Templafy.
  • Column in a data source if the color theme will be applied based on user input.

 

How to upload a color theme

Color themes should be .xml files and the ones created using Microsoft Office are stored by default at: %appdata%\Microsoft\Templates\Document Themes\Theme Colors

 

In order to upload a color theme complete the following steps:

1. Go to the 'Company Data' section in the admin interface.

 

upload_and_apply_colortheme1.png

 

2. Upload the colortheme.xml file. 

 

upload_and_apply_colortheme2.png

 

Once it is uploaded, it will appear below the uploaded theme button

upload_and_apply_colortheme3.png

 

How to apply a color theme to a Word document

 

Default Color theme

In order to have this particular color theme added by default to the document upon creation, this can be configured in the Document tab of the Template Designer by referencing the name of the color theme file (without curly brackets) in the Color Theme field.

Steps:

  1. Open Template Designer.
  2. Click "Document tab"
  3. Choose Color Theme from the dropdown
  4. Click the Add button
  5. Specify the name of the color theme file. 

 

upload_and_apply_colortheme4.png

 

Dynamic Color theme

A dynamic Color theme represents one that can be configured to change based on a user's profile information or choice.

 

Based on User Profile's information: 

If the color theme is to be linked to the user's profile, there must be a data source related to the user profile, that contains a column that refers to the color theme name that is to be applied (assuming that the color theme has already been uploaded to the tenant.)

Steps:

  1. Create a Data Source.
  2. Create a DropDown field in the UserProfile form that links to the Data Source.
  3. Open Template Designer.
  4. Click "Document tab"
  5. Choose Color Theme from the dropdown.
  6. Click the Add button.
  7. Specify Binding {{Form.FieldName.Column}}

 

 

Related Data source:

 

upload_and_apply_colortheme5.png

 

User profile configuration:

 

upload_and_apply_colortheme6.png

 

Specify Binding:

 

upload_and_apply_colortheme7.png

 

Based on a user's choice: 

In addition, the data source that contains the color themes can be referenced in a DropDown form field either in the User Profile, or a separate form attached to the document, enabling the user to manually select their preferred color theme from the list. 

Steps:

  1. Create a DropDown field / create a form that links to the Data Source
  2. (Optional) Attach the form to the Word Document*
  3. Click "Document tab"
  4. Choose Color Theme from the dropdown.
  5. Click the Add button.
  6. Specify Binding {{Form.FieldName.ColumnName}}

 

Form configuration:

 

upload_and_apply_colortheme8.png

 

User perspective:

 

The document with the new form attached allowing the user the option to choose the desired color theme.

upload_and_apply_colortheme9.png

 

For more information about working with Template Designer, please see this article.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.