Print/Preview Merged Document

3 posts, 0 answers
  1. Lee
    Lee avatar
    10 posts
    Member since:
    Dec 2014

    Posted 25 Feb 2015 Link to this post

    I'm trying to print/preview the complete results from a merge - the code below only outputs the currently selected merge record. I can scroll thru all merged records on screen but not print or preview the "whole" document. Dim provider As IDocumentFormatProvider = New DocxFormatProvider()
                    Dim openDialog As New OpenFileDialog()
                    openDialog.InitialDirectory = Session.WorkFolder & "\letters"
                    'openDialog.Filter = "Documents|*.docx"
                    openDialog.Multiselect = False
                    Dim dialogResult As DialogResult = openDialog.ShowDialog()
                    If dialogResult = System.Windows.Forms.DialogResult.OK Then

                        Using stream As Stream = openDialog.OpenFile()
                            RichTextEditor.Document = provider.Import(stream)
                        End Using

                        RichTextEditor.Document.MailMergeDataSource.ItemsSource = WkLetters


                    End If

    Any help would be greatly appreciated.


  2. Lee
    Lee avatar
    10 posts
    Member since:
    Dec 2014

    Posted 27 Feb 2015 Link to this post

    Have sorted this thanks.
  3. Stefan
    Stefan avatar
    2908 posts

    Posted 02 Mar 2015 Link to this post

    Hello Lee,

    I am glad you have solved this case on your own. 

    We will really appreciate it if you can provide more details on what precisely was the issue you had and how you resolved it, so our community can benefit from this thread.

    Thank you in advance.


    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