コード例 #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());
        }