[DevExpress Support Team: CLONED FROM T328409: General format switches provided for field codes do not work correctly]
Hi Paulo,
I mean,if you insert a command and type { MERGEFIELD XX } etc by hand this works fine but if you try to
type a compound line such as …
{ IF { MERGEFIELD XX } =1 "Something" { IF { MERGEFIELD XX } =2 "This thing" etc etc
This does not work without having to use the Ctrl+F9 and even then does not always parse correctly.
e.g I had a parameter with a space in it and it did not work, it was "Annual D/D" and all i got when
the field was parsed was "Annual" without the D/D, i guess because of the space, even though I had quotes
so I had to put in "Annual:D/D" for it to work as it doesnt "like" the space.
I'm not critcising its just that it can be fiddly to get right thats all:) …
I can send you my final document I was working on, but I cant see on this thread how to make PRIVATE.
Rgds Jeff
Mail Merge - The space character is not recognized
Answers approved by DevExpress Support
I have discussed this behavior with our developers. In this case, our Rich Edit Control works the same way as MS Word. To indicate that a merged field value is a string value, it is necessary to use quotation marks. The definition should look like this:
{ IF "{ MERGEFIELD XX}" = "Annual" "True" "False"}
Thanks. I have reproduced the problem with the space character in field values and forwarded this ticket to our developers for research. If you wish to share a private document with us, you can create a Private ticket and attach it there. While creating a new ticket, please describe the problem demonstrated in your document in detail. Thanks in advance.