I've got an aps.net site. Can I start a print request for a pdf from a client to a printer connected only to the server? In my server I use this code in a web api
[HttpPost]
public void Print()
{
ProcessStartInfo info = new ProcessStartInfo();
info.Verb = "print";
info.FileName = @"C:\Users\Me\Documents\Doc.pdf";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process p = new Process();
p.StartInfo = info;
p.Start();
}
If I run this request while debugging it works (i mean it prints the doc correctly), but if I start the request with with postman from a virtual machine (to simulate a network request) and debug the process attached to a IIS site no error will rise but no print done. The debug steps correctly all the instructions.
I set my application pool with my user identity (admin) and "connect as" on the site as well as my user.
I don't know if It can't be done cause on ASP.NET or cause I'm missing something.