Dynamic Merge Field With Table

6 posts, 0 answers
  1. serkan
    serkan avatar
    6 posts
    Member since:
    Jun 2014

    Posted 04 Feb 2015 Link to this post

    Hello,

    I use ExpandoObject in RichTextbox for get and set mergefields dynamicly, but i have problem with tables. When i use merge fields in tables i can not give any inline. How can i use dynamic merge fields with table.

    Thanx.
  2. Mihail
    Admin
    Mihail avatar
    192 posts

    Posted 06 Feb 2015 Link to this post

    Hello Serkan,

    We are not aware of any problems related to working with merge fields and inlines inside table cells regardless if mail merge data source is from ExpandoObjects or not.

    Could you provide more information on what is your overall goal and what you are trying to add to the table cell.

    Regards,
    Mihail
    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 WPF is Visual Studio 2017 Ready
  4. serkan
    serkan avatar
    6 posts
    Member since:
    Jun 2014

    Posted 06 Feb 2015 in reply to Mihail Link to this post

    Hello Mihail,

    My ItemsSource in ExpandoObject, but when i inject Table it cant do anything. I thing it only inject strings but it cant inject Table.
  5. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 10 Feb 2015 Link to this post

    Hello Serkan,

    The default implementation of MergeField supports only plain text. In order to merge with more complex data you should implement custom MergeField. More detailed explanations about how to implement such scenario you can find in our Custom Fields article.

    In addition, I am sending you a sample project which demonstrates how this could be achieved.

    Let me know if you have any further questions.

    Regards,
    Tanya
    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.

     
  6. serkan
    serkan avatar
    6 posts
    Member since:
    Jun 2014

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

    Hello Tanya,

    You dont understand me. I have Word Docx file, it doesn't created with radRichTextBox. It Created with MS Office Word, and i mailing in richtextbox with dynamic object (ExpandoObjexct). This arthicle can't answer my problem. Can we use only plain Text? 
  7. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 12 Feb 2015 Link to this post

    Hello Serkan,

    I am not sure if I understand your question. Do you mean that one of the fields in your document corresponds to a table in the data source? Please, send us an example file or images of the file you are working with. Any other information you think can be useful is also welcome.

    Regards,
    Tanya
    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
UI for WPF is Visual Studio 2017 Ready