Пример #1
0
        public void SendToFile(string fileName)
        {
            string FilePath = Properties.Settings.Default.OutputFile + "\\" + fileName;

            File.WriteAllBytes(Properties.Settings.Default.OutputFile + "\\" + fileName, GetBytes());

            //string printerName = GetPrinterName();
            //RawPrinterHelper.SendFileToPrinter(printerName, FilePath);

            string printerName = GetPrinterName();

            RawPrinterHelper.SendBytesFileToPrinter(printerName, GetBytes());
        }
Пример #2
0
        public void SendToPrinter(string fileName)
        {
            /* Original Code
             * string FilePath = Properties.Settings.Default.OutputFile + "\\" + fileName;
             * File.WriteAllBytes(Properties.Settings.Default.OutputFile + "\\" + fileName, GetBytes());
             *
             * string printerName = GetPrinterName();
             * RawPrinterHelper.SendFileToPrinter(printerName, FilePath);
             */
            string printerName = GetPrinterName();

            RawPrinterHelper.SendBytesFileToPrinter(printerName, GetBytes());
        }
Пример #3
0
        public void SendToPrinter()
        {
            string printerName = GetPrinterName();

            RawPrinterHelper.SendBytesFileToPrinter(printerName, GetBytes());
        }