Free Support Forum - aspose.com

Removing colon between empty MERGEFIELDs

Word has a feature where you can surround a colon with two merge fields and if both fields are empty then it will also remove the colon. Example:

{ MERGEFIELD Option_1 }: { MERGEFIELD Option_1_Denial_Reason }

If both Option_1 and Option_1_Denial_Reason are empty then word will also remove the white space and colon between the two fields. I tried running a document through Aspose with this setup and the colons were left in the document. Is there something additional I need to do to get Aspose to use this feature?

@mpetersenf400f,

We have logged your requirement in our issue tracking system. The ID of this issue is WORDSNET-17386. We will further look into the details of this problem and will keep you updated on the status of this issue. We apologize for any inconvenience.

The issues you have found earlier (filed as WORDSNET-17386) have been fixed in this Aspose.Words for .NET 18.11 update and this Aspose.Words for Java 18.11 update.

The issues you have found earlier (filed as WORDSNET-17733) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.