DATA CENTER AND SERVER | CLOUD

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Problem

Existing bookmarks in a custom Word Export template are missing after exporting in R4J.

Bookmarks that are removed will notably include a trailing white space in the selection and template language directly below that retrieves a null value.

Root Cause

The trailing space at the end of the line when highlighting is called show/hide paragraph mark which indicates paragraph break. This is one of MSWord's non-printable symbols so it is not included in the content itself during parsing and, therefore, cannot be parsed by the template parser. Due to the way MSWord handles this (see here for further reading), the template parser treats the next line as part of the bookmark since the trailing space was highlighted as well.

If the template statement directly below a bookmark with a trailing white space retrieves a null value, the value for the bookmark is considered null and the bookmark is deleted. When the exported file is generated, this bookmark doesn't exist the same way anymore and, thus, Word drops it.

Solution

Recommended

  • Bookmarks must be created by selecting the word directly (not with double click) to exclude the paragraph break and trailing white space.

Other

  • If bookmark highlight includes a trailing space, place something below the bookmark other than template language – something that will always return a value.
  • If bookmark highlight includes a trailing space with template language directly under, make sure that a value is returned.



  • No labels