Exemplo n.º 1
0
        static public void Main(string[] args)
        {
            if (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))
            {
                Console.WriteLine(usage);
            }
            else
            {
                //printing sample
                SimplePrinting printer = new SimplePrinting();

                //print file with preview
                printer.PrintFile(@"C:\BOOT.ini", true);

                //print string with preview
                printer.Print(@"qqqqqqqqq 3333333333 4444444444444444 5555555555555 66666666666666 7777777777777 888888888888", true);
            }
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            if (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))
            {
                Console.WriteLine(usage);
            }
            else
            {
                //printing sample
                SimplePrinting printer = new SimplePrinting();

                //print file with preview
                printer.PrintFile(@"C:\BOOT.ini", true);

                //print string with preview
                printer.Print(@"qqqqqqqqq 3333333333 4444444444444444 5555555555555 66666666666666 7777777777777 888888888888", true);
            }
        }