Dear all,
I am trying to do autoprinting option using ASP.Net webapplication with some SSIS packages.
In my requirement, i need to auto print the pdf file with below codes. It is working when i am debugging in Visual studio. But when i deploy the files in IIS, It is not auto printing.
Please help me on this. Do i need to enable any properties in Windows server 2008.
Thanks in advance.
- string arguments = arugumentValue;
-
- string executable="C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\AcroRd32.exe"
-
- int waitingTime = 18000;
-
-
- ProcessStartInfo starter = new ProcessStartInfo(executable, arguments);
- starter.CreateNoWindow = true;
- starter.WindowStyle = ProcessWindowStyle.Hidden;
- starter.UseShellExecute = false;
- Process process = new Process();
- process.StartInfo = starter;
-
- process.Start();
-
- process.WaitForExit(waitingTime);
-
- process.CloseMainWindow();
- process.Kill();
- starter = null;
- process = null;