Unable to use Mailmerge method from radflowdocument

5 posts, 0 answers
  1. David
    David avatar
    15 posts
    Member since:
    Aug 2006

    Posted 15 Jul 2015 Link to this post

     The mailmerge method doesn't display on intellisense, or if i just type it in, it doesnt still work.  Says its not a member of radflowdocument.

    Screenshot attached showing all the other methods, properties, etc.

    I have these references:

    <assemblies>
            <add assembly="Telerik.Windows.Documents.Core, Version=2015.2.623.40, Culture=neutral, PublicKeyToken=5803CFA389C90CE7"/>
            <add assembly="Telerik.Windows.Documents.Fixed, Version=2015.2.623.40, Culture=neutral, PublicKeyToken=5803CFA389C90CE7"/>
            <add assembly="Telerik.Windows.Documents.Flow, Version=2015.2.623.40, Culture=neutral, PublicKeyToken=5803CFA389C90CE7"/>
            <add assembly="Telerik.Windows.Documents.Flow.FormatProviders.Pdf, Version=2015.2.623.40, Culture=neutral, PublicKeyToken=5803CFA389C90CE7"/>
            <add assembly="Telerik.Windows.Maths, Version=2015.2.623.40, Culture=neutral, PublicKeyToken=5803CFA389C90CE7"/>
            <add assembly="Telerik.Windows.Zip, Version=2015.2.623.40, Culture=neutral, PublicKeyToken=5803CFA389C90CE7"/>

     

    Any ideas why?  Appreciate it.

  2. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 16 Jul 2015 Link to this post

    Hello David,

    We are not aware of a similar issue and I couldn't reproduce it with the provided information. You have referenced the necessary dll-s and the only thing, which comes to mind, is to try to clean and rebuild the solution. I am attaching the project I tested with - it is simple console application demonstrating the Mail Merge functionality. Please, check it and let me know if I am missing something and how it works for you.

    Regards,
    Tanya
    Telerik
  3. David
    David avatar
    15 posts
    Member since:
    Aug 2006

    Posted 16 Jul 2015 in reply to Tanya Link to this post

    Thank you Tanya.

     Initially on opening the sample program you sent, i was getting the same error on the mailmerge method, saying its not a member of radflowdocument.  I looked at the references and the Documents.Core, .Fixed, .Flow, and .Zip are version 2014.1.331.40.

     I removed those references and replaced them with the 2015.2.623.40 versions. Cleaned and rebuilt solution, and error goes away.

    Its the same ones i reference in my project too.  Odd.

  4. David
    David avatar
    15 posts
    Member since:
    Aug 2006

    Posted 16 Jul 2015 in reply to David Link to this post

    I created new website app to test , and its still not working.  Here's the code:

    Imports Telerik.Windows.Documents.Flow.FormatProviders.Docx
    Imports Telerik.Windows.Documents.Flow.Model
    Imports System.IO
     
    Partial Class _Default
        Inherits System.Web.UI.Page
     
        Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
            Dim doc As New RadFlowDocument
            doc.MailMerge()
        End Sub
    End Class

    Ive attached screenshots of my BIN folder dll's, and where it says mailemerge isn't a member of radflowdocument.

     

    Thank you!

     

  5. David
    David avatar
    15 posts
    Member since:
    Aug 2006

    Posted 17 Jul 2015 in reply to David Link to this post

    I deleted the GAC folders for the above mentioned dlls then added dlls to BIN folder.  Working now.  Apparently the GAC files referenced the WPF 2014 version.
Back to Top