private void PrintDocument(object sender, ExecutedRoutedEventArgs e) { if (_printManager.Print()) { status.Text = "Document sent to printer."; } }
private void PrintDocument(object sender, ExecutedRoutedEventArgs e) { //PrintDialog dlg = new PrintDialog(); //if (dlg.ShowDialog()==true) //{ // dlg.PrintDocument((((IDocumentPaginatorSource)body.Document).DocumentPaginator),"Text Editor Printing"); //} if (_printManager.Print()) { status.Text = "Document sent to printer."; } }
private void PrintDocument(object sender, ExecutedRoutedEventArgs e) { //PrintDialog dlg = new PrintDialog(); //if (dlg.ShowDialog() == true) //{ // dlg.PrintDocument( // ( (IDocumentPaginatorSource)richTextBox.Document ).DocumentPaginator, // "Text Editor Printing" // ); //} if (printManager.Print()) { status.Text = "Document sent to printer"; } }