Mail Merge using "conditions" does not work

4 posts, 0 answers
  1. Blessy Antony
    Blessy Antony avatar
    6 posts
    Member since:
    Feb 2010

    Posted 06 Feb 2015 Link to this post

    1.Imported a word document with conditional merge filed ({ IF "{ MERGEFIELD Gender }" = "Male" "Sir" "Madam" }).
    This condition was created using MS WORD.

    We imported this file in the Telerik Radeditor for mail merge.
    On exporting the file from Telerik Radeditor, the output files did not have any of the merge fileds that were created in word document.

    2.Does Telerik have a feature to create the conditional merge fileds like we can do with MS word.

    Thanks.
  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 10 Feb 2015 Link to this post

    Hello Blessy,

    When it comes to MailMerge from MS Word, there is no technical approach to paste the if field and expect it to work. In the scope of the HTML, where is the data base table, which to coordinate with?

    Generally, in HTML this can be called binding to data base, and the approach to build it like in MS Word is rather a custom solution. There are no built-in options to achieve that.

    Recently, a new code library item was created to demonstrate the creation of a similar MailMerge functionality. You can follow it via this link - MailMerge with RadEditor. Although, if statement fields are not illustrated, you should be able to follow the example attached and further extend it up to the exact requirements.

    Note that using the custom solution suggested will not enable users to paste MailMerge from MS Word directly. With this solution the data table is still not passed and in a web application there is no technique available to properly get it.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Blessy Antony
    Blessy Antony avatar
    6 posts
    Member since:
    Feb 2010

    Posted 10 Feb 2015 in reply to Ianko Link to this post

    Hi Lanko,

     We tried using the control you mentioned and found that:
    1. The formatting of the word document is shaken.
    2. Mail merge fields, conditions etc are not preserved.

    Trying to attach a document with a few mail merge fields and conditional rendering of checkboxes. Unable to do so here, let us know where to send this to you.
    Try importing this document into the telerik control, edit it and then export it into word. Check the difference between both the documents.

    Please let us know if the formatting and mail merge work as expected.

    Thanks in advance.



  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 12 Feb 2015 Link to this post

    Hello,

    As I stated below, there is no approach to provide a functionality that can be supported both in HTML environment and MS Word. Both cases are different and when it comes to MailMerge, in HTML this is a custom solution which cannot be handled as in MS Word.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top