Using external styles from Word stylesheets

When designing templates with RPE it is recommended you separate the formatting of the document from the rest of the template.You can define most formatting properties in the template but that makes for a template that is difficult to manage. The better option is to use external styles defined in Word stylesheets.


Using Word stylesheets will make the template simpler to maintain and it will also allow you to change the appearance of the document simply by providing a different stylesheet.

NOTE: any Word document format can serve as a stylesheet, RPE does not limit the options to dot/dotx/dotm files.

NOTE: you can use Word stylesheets for the PDF output too.

To understand how external files are used follow these simple steps:

  1. create a template
  2. add a paragraph and some text inside it
  3. set the paragraph’s style property to “XYZ”
  4. run the document – observe the text in the Word output has normal style
  5. create a Word document ( doc/dot/dotx/docx) and define a style in it named “XYZ”.
  6. assign the path to this Word document to the Word and PDF stylesheets in RPE
  7. run the document generation again and observe the results

Author: Dragos Cojocari

Architect for Rational Publishing Engine

3 thoughts on “Using external styles from Word stylesheets”

  1. Is it possible to retrieve any metadata about the stylesheet inside the RPE template.
    I want to print the version (or the file name) of the used style sheet to the first page of the generated document.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s