public static void Print(EpsonPrinter p1) { Log("Print started"); var o = new OpenFileDialog(); o.ShowDialog(); var f = File.OpenRead(o.FileName); p1.Print(f); Log("Print finished"); }
public static void Print(EpsonPrinter p1) { Log("Print started"); var o = new OpenFileDialog(); o.ShowDialog(); // чтение из потока var f = File.OpenRead(o.FileName); // запись в поток p1.Print(f); Log("Print finished"); }