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.