This is a migrated thread and some comments may be shown as answers.

Unable to use Mailmerge method from radflowdocument

4 Answers 205 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 15 Jul 2015, 07:41 PM

 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.

4 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 16 Jul 2015, 03:31 PM
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 -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
0
David
Top achievements
Rank 1
answered on 16 Jul 2015, 05:47 PM

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.

0
David
Top achievements
Rank 1
answered on 16 Jul 2015, 07:04 PM

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!

 

0
David
Top achievements
Rank 1
answered on 17 Jul 2015, 07:01 PM
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.
Tags
WordsProcessing
Asked by
David
Top achievements
Rank 1
Answers by
Tanya
Telerik team
David
Top achievements
Rank 1
Share this question
or