Is it possible to change or update the mergefield names?

Last post 02-11-2008, 3:34 PM by Klepus. 4 replies.
Sort Posts: Previous Next
  •  01-23-2008, 6:40 PM 110168

    Is it possible to change or update the mergefield names?

    Here is my scenario.  We have multiple clients that we export the documents to, whom use their own set of mergefields (such as crms).

    I have a table with 3 fields (CompanyID, "OurMergeField", "TheirMergeField")

    When a document is exported to the client, we want to update it with their preferred mergefields based on the CRM that they are using.

    I believe that the mergefield.fieldname object only has get attributes.  Is this true?  What would be the best way to accomplish my goal? 

    1. Change the mergefield names  (is this possible?)
    or
    2. Delete the current mergefields and replace them with new mergefields (i am guessing that this is definately possible)

    Filed under: merge;mergefield;name
     
  •  01-24-2008, 4:54 AM 110228 in reply to 110168

    Re: Is it possible to change or update the mergefield names?

    Hello!

     

    Thank you for your interest I Aspose.Words.

     

    Please take a look on this article in the documentation:

    http://www.aspose.com/Products/Aspose.Words/Api/Rename_Merge_Fields.html

     

    There is a technique to change names of merge fields. To take names from the table some code should be written to traverse it and find appropriate merge fields.

     

    Let us know whether this fits your needs.

     

    Regards,


    Viktor Sazhaev
    Software Engineer, Aspose Auckland Team
     
  •  02-11-2008, 2:19 PM 112832 in reply to 110228

    Re: Is it possible to change or update the mergefield names?

    I am getting an error trying to view the page you pointed me to:

    The specified request cannot be executed from current Application Pool

     
  •  02-11-2008, 2:48 PM 112838 in reply to 112832

    Re: Is it possible to change or update the mergefield names?

     
  •  02-11-2008, 3:34 PM 112849 in reply to 112838

    Re: Is it possible to change or update the mergefield names?

    Hello!

     

    Sorry, this page was renamed since I had given you the link.

     

    The proper link is the following:

    http://www.aspose.com/Products/Aspose.Words/Api/Rename-Merge-Fields.html

     

    Regards,
    Viktor Sazhaev
    Software Engineer, Aspose Auckland Team
     
View as RSS news feed in XML