Bug Report T330329
Visible to All Users

Mail Merge - The space character is not recognized

created 9 years ago

[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

Comments (1)
DevExpress Support Team 9 years ago

    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.

    Answers approved by DevExpress Support

    created 9 years ago

    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"}

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.