Example #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (!MyPrinter.Open("Test Page"))
     {
         return;
     }
     MyPrinter.Print("This text is sent to a line printer\r\n");
     MyPrinter.Print("===================================\r\n");
     MyPrinter.Close();
 }