Esempio n. 1
0
 private void PrintDocument(object sender, ExecutedRoutedEventArgs e)
 {
     if (_printManager.Print())
     {
         status.Text = "Document sent to printer.";
     }
 }
Esempio n. 2
0
 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.";
     }
 }
Esempio n. 3
0
        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";
            }
        }