Good-morning,
We are currently using a different component to handle mail merges in a Word doc. It has been working ok, but there are issues and we are evaluating alternative components.
One of the primary scenarios that we are trying to address is merging content in a manner that will suppress blank lines and/or spaces. The typical objective is merging address information. For example:
<First Name><Last Name><Designations>
<Organization>
<Department>
<Address line 1>
<Address line 2>
<City><State><Zip Code>
<Country>
Objective 1
If the data being merged for fields like Organization and Department do not exist, the blank line needs to be removed/suppressed so the address appears without the extra blank lines.
Objective 2
Furthermore, ideally when the designations is added there would be a way to specify directly in the Word doc if a comma would be added*.
Note: Word field options support "Text to be inserted before:" and "Text to be inserted after":, but I am not sure if the Spire.Doc respects those field options.
Questions:
1. Can Spire.Doc facilitate the process of suppressing blank lines/spaces?
2. Can Spire.Doc facilitate the process of adding text depending if data exists (does it support the Word field options)?
3. If yes to either of the questions above, can you provide a brief description of how it would be handled?
Regards,
Minasu