Der Befehl lpr funktioniert in meinem C # -Programm in Win 7 nicht
Ich habe ein Programm, das eine Datei mit dem Befehl 'lpr' an einen Drucker sendet. Ich habe Windows SDK 7.1 installiert. Es funktioniert gut in einem 32-Bit-Windows 7-System, aber nicht in 64-Bit-Windows 7.
<code> Process proc = new Process(); proc.StartInfo.FileName = "lpr"; proc.StartInfo.WorkingDirectory = GlobalConstants.outBaseDir; proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; proc.StartInfo.Arguments = " -S " + GlobalConstants.printerIP + " -P RAW " + filePath; proc.Start(); </code>
Es wird eine Exekution ausgelöst.