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()); }
public void SendToPrinter() { string printerName = GetPrinterName(); RawPrinterHelper.SendBytesFileToPrinter(printerName, GetBytes()); }