We currently spin up adobe reader to print out a pdf from our legacy silverlight product which works fine with the following code:
Dim shell = AutomationFactory.CreateObject("Shell.Application")
shell.ShellExecute(path, "", "", "print", 1)
This works great, the problem is that after the printing has been done the Adobe reader application is still left open which is a little annoying to the user base.
My question is how do we close the adobe reader application from code?
Thanks