We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

List of not supported chars in merge fields

Hi there,

What is the list of the characters that Aspose.Words don’t support to be in the merge field name?

So far we noticed the followings: | \ /

We need a full list so we can be preventing the user from entering them.


@b5digital There are not limitations what characters you can use in merge field name. Aspose.Words follows the same rules as MS Word does - you can use any characters in the merge field name if it’s name is enclosed into double quotes. The only exception are double quote and backslash characters, which should be escaped by backslash.
{ MERGEFIELD "\"\\" }