Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added restrictions

...

Some Text Before
My sweet rtf document
has some content
{quote}

Formatting

Rtf documents maintain their own formatting, so if there is some bold text, or a right-aligned paragraph in the rtf document it will maintain that formatting. This includes the default font for the document, which may not match the default font of the template.

Restrictions

Because WordTemplate does not parse the contents of the rtf document, rtf fields in the comparison portion of if fields is not supported, when UpdateIfFields is set to true.
Because inserting an rtf document is not the same as inserting a character run some formatting and document structures do not support rtf fields:

  • Having mixed direction (left-to-right versus left-to-right) text in the paragraph containing the rtf field may, in some cases, not be allowed. This can be avoided by putting the rtf field in its own paragraph.
  • The cached output of another field cannot have rtf fields, however if it is in the field codes it will be handled like other fields.
  • Hyperlinks cannot span multiple paragraphs, and subsequently cannot have rtf documents
  • Rtf fields cannot go in either part of a phonetic guide, because those also do not support multiple paragraphs.
  • Structured document tags cannot have rtf fields (these are the items created when quick parts inserted, and have the little tab, e.g. "Title").
  • Tracked changes (insertions,deletions,moves) are sometimes stored in such a way that prohibits rtf documents. Accepting or rejecting any changes that encompass rtf fields will ensure that this is not a problem.