In my current upgrade project I need to upgrade a solution I did for Classic NAV where I used the “‘Windows Script Host Object Model’.WshNetwork” Automation object to add a network printer automatically.
I looked a round and did not find any dotnet object capable of adding a network printer. However, there was a c# code I found that was able to do this. So, I created a NAV Add-in with this code