Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     using (var printer = new TextPrintDocument())
     {
         printer.PrintController = new StandardPrintController();
         printer.DefaultPageSettings.Margins.Left = 75;
         printer.DefaultPageSettings.Margins.Right = 75;
         printer.Text = File.ReadAllText(args[0]);
         printer.Print();
     }
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     using (var printer = new TextPrintDocument())
     {
         printer.PrintController = new StandardPrintController();
         printer.DefaultPageSettings.Margins.Left  = 75;
         printer.DefaultPageSettings.Margins.Right = 75;
         printer.Text = File.ReadAllText(args[0]);
         printer.Print();
     }
 }