Пример #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            if (webBrowser2.DocumentText == "")
            {
                MessageBox.Show("Δεν έχετε επιλέξει λήμμα!..");
            }
            else
            {
                PrintDialog printdialog1 = new PrintDialog();
                System.Windows.Forms.WebBrowser article = webBrowser2;

                //new PrintingExample(article.Document.Body.InnerText);

                if (printdialog1.ShowDialog() == DialogResult.OK)
                {
                    article.Print();
                }
            }
        }
Пример #2
0
 private void printToolStripButton_Click(object sender, EventArgs e)
 {
     WebBrowser printer = new WebBrowser();
     printer.DocumentText = mainTextBox.Text;
     printer.Refresh();
     printer.Print();
 }
Пример #3
0
 public void printPage()
 {
     b.Print();
 }