Beispiel #1
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());
        }
Beispiel #2
0
        public void SendToPrinter()
        {
            string printerName = GetPrinterName();

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