none
mail merge field and word 2010 RRS feed

  • Question

  • hello, 
    is there a limit to a mail merge field name? 
    i have a strange situation 
    with word 2007, i can define long fields (like "TBL_1234_123456") and get them with the openxml sdk as a "SimpleField" object. 
    with word 2010, if the field name is longer than 12 chars - it becomes "fieldcode" object and i cannot use the sdk for it. 

    help anyone?? 

    Eran
    Monday, July 12, 2010 6:44 PM

All replies

  • Hi Eran

    the better place to ask this would be the Open XML SDK forum, I think, so I'm going to move your message there.

    To answer your question literally, yes, there is a limit to a MailMerge field code's name, but it's certainly more than 12 characters. What you're seeing appears to be something in how Word writes the corresponding OpenXML.


    Cindy Meister, VSTO/Word MVP
    Tuesday, July 13, 2010 5:57 AM
    Moderator