FlowDocument doc = new FlowDocument(new Paragraph(new Run(textBox1.Text))); doc.Name = "FlowDoc"; IDocumentPaginatorSource idpSource = doc; PrintDialog printDlg = new System.Windows.Controls.PrintDialog(); printDlg.PrintDocument(idpSource.DocumentPaginator, textBox1.Text);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)