Print Works in Local and not in IIS
Hello All,I am having an issue for printing pdf after hosting in local IIS. below is my code
-------------------------------------------------------
ProcessStartInfo info = new ProcessStartInfo();
info.Verb = "print";
info.UseShellExecute = true;
info.LoadUserProfile = true;
info.WorkingDirectory = currentPath;
info.FileName = currentPath + "/" + "VisitorTabletPrint.pdf";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process p = new Process();
p.StartInfo = info;
p.Start();
p.WaitForInputIdle();
System.Threading.Thread.Sleep(3000);
if (p.CloseMainWindow() == false)
{
p.Kill();
}
-------------------------------------------------------
Above code works fine in visual studio and it print the req document. but when host the same application in my local IIS, it is not printing the pdf and also not giving any error.
I have tried many things like full access to IIS and also allow internet printing section for IIS, but not found anything. also gone through many links but no luck.
Any help will be appreciated.