Book a Demo

Author Topic: DocProperty Fields Are Converted to MergeFields in Documents Generated from EA  (Read 26108 times)

pb17

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Hi everyone,

I'm working on improving the cover page of my reports and want to include some custom fields using DocProperty. The goal is to have the exported document display the following:

Property 1: [Document Reference]
Property 2: [Info]
In the template, I’ve added:

[Document Reference] → { DOCPROPERTY "MyFile_XYZ" \* MERGEFORMAT }
[Info] → { DOCPROPERTY "MyFile_ZXY" \* MERGEFORMAT }
However, when the document is generated from Enterprise Architect 15.1, these fields are automatically converted to MERGEFIELD, like so:

[Document Reference] → { MERGEFIELD DOCPROPERTY "MyFile_XYZ" \* MERGEFORMAT }
[Info] → { MERGEFIELD DOCPROPERTY "MyFile_ZXY" \* MERGEFORMAT }
This changes the field type from DocProperty to MergeField, which is not the intended behavior. It happens in both .docx and .rtf formats.

Has anyone encountered this issue before?
Is there a way to prevent EA from converting DocProperty fields to MergeFields during document generation?

Thanks in advance!