Xsemmel/PrintEngine/Printing.cs
/// <summary>
/// Creates a DocumentPaginatorWrapper from TextEditor text to print.
/// </summary>
Creates a DocumentPaginatorWrapper from TextEditor text to print.
Creates a DocumentPaginatorWrapper from TextEditor text to print .
public static DocumentPaginatorWrapper CreateDocumentPaginatorToPrint(TextEditor textEditor, PageSettings pageSettings, PrintTicket printTicket, string title)
        {
            IDocumentPaginatorSource dps = CreateFlowDocumentToPrint(textEditor, pageSettings, printTicket);
            DocumentPaginatorWrapper dpw = new DocumentPaginatorWrapper(dps.DocumentPaginator, pageSettings, printTicket, textEditor.FontFamily);
            dpw.Title = title;
            return dpw;
        }
public static DocumentPaginatorWrapper CreateDocumentPaginatorToPrint ( TextEditor textEditor , PageSettings pageSettings , PrintTicket printTicket , string title ) { IDocumentPaginatorSource dps = CreateFlowDocumentToPrint ( textEditor , pageSettings , printTicket ) ; DocumentPaginatorWrapper dpw = new DocumentPaginatorWrapper ( dps . DocumentPaginator , pageSettings , printTicket , textEditor . FontFamily ) ; dpw . Title = title ; return dpw ; }
Creates a DocumentPaginatorWrapper from TextEditor text to print.
Creates a DocumentPaginatorWrapper from TextEditor text to print .
// this baby adds headers and footers
textEditor
TextEditor
pageSettings
PageSettings
printTicket
PrintTicket
title
string