Unable to get a numeric format switch to apply in mail merger

From MS Insert and Format field codes, I am trying to use the numeric format switch “x” to drop digits to the left. I basically need to mask a SSN by only showing the last four digits. I have tried using “# x###” as is listed, but this just returns a “x” in front of the entire number and doesn’t drop any digits. I am able to to use other numeric formatting options on the same data, i.e. “# ###,###,###” returns a comma separated value. I just can’t get the “x” to drop digits.

Hi Ryan,

Thanks for your inquiry. In case you are using an older version of Aspose.Words, we suggest you please upgrade to the latest version of Aspose.Words for .NET 16.5.0.

The mail merge field's code should be like { MERGEFIELD FieldName \# "x######" }.

If you still face problem, please share input document and code here for testing purposes. We will investigate the issue on our side and provide you more information.

Thank you for the suggestion. We are currently running an older version of Aspose.Words as you supposed, version 14.2.0. Did the “x” operator not work in that version? I’m not sure of our license and if we are able to upgrade at this time.

Hi Ryan,

Thanks for your inquiry. Unfortunately, we don't provide support for older releases of Aspose.Words. Please note that we do not provide any fixes or patches for old versions of Aspose products either. All fixes and new features are always added into new versions of our products. So, you will have to upgrade if you need new features or fixes.

The shared field codes are supported by latest version of Aspose.Words. Please upgrade to the latest version of Aspose.Words for .NET 16.5.0 and let us know if you have any more queries.