I have a UWP app in the Window store that prints envelopes. The app before could automatically print to a wide range of envelope sizes, selected by the user. Microsoft however changed its print UWP APIs, so that this ability now only works for a very small number of envelope sizes. I would like to see if I can access win32 APIs for printing as a work around, to get back the flexibility I had before when I was able to print to a wide range of different sized envelopes. In addition, I would like to be able to allow users to define custom sized envelopes they can print to.
The answer given in the following link by Stefan Wick from Microsoft seemed promising. However I'm simply unable to successfully open and run his Visual Studio solution app, PrinterInterop, which supposedly is along the lines I'm looking for. When I try to open the app in VS 2015, VS 2015 notes that the PrinterInterop project within the solution, requires VS to be updated. When I right click on the project in Solution Explorer, and click on Reload Project in the pop-up menu, I see a dialog which reads, "One or more projects are targeting the Windows 10 Fall Creators Update platform which requires a newer version of Visual Studio. Learn how to upgrade to 15.0.25909.2." I cannot figure out how to upgrade my version of VS 2015 to this newer version. I even did a brand new installation of VS 2015 on another computer, and ran into the same problem. I also tried running the app in VS 2017, and I still cannot get the PrinterInterop project within the solution, to successfully load.
How to Silent print from an UWP Application
I would really appreciate it if someone could suggest a solution to my problem. Thank you.