I have program that sends a file to a printer using 'lpr' command.
I have installed Windows SDK 7.1. It is working fine in a 32 bit Windows 7 system but not working in 64 bit Windows 7.
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();
It throws an execption.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…