I tried to print from server in the IIS. It working from the Visual Studio but when publish and host from IIS, the print not working.
Below is my code:
var p = new Process();
p.StartInfo = new ProcessStartInfo()
{
UseShellExecute = true,
CreateNoWindow = true,
FileName = "D:\Document.pdf",
WindowStyle = ProcessWindowStyle.Hidden,
Verb = "print"
};
p.Start();
I found other issue exactly like this , here the link and follow all the recommendation but still not work. Can anyone help and give the suggestion.