コード例 #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
ファイル: office-writer.cs プロジェクト: Krypton-Project/Fox
 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();
 }