Very useful, Chris. Thanks for sharing it. I didn't know that Edge is the default PDF viewer in Windows 10. Presumably, the "print" parameter doesn't work with Edge, which is why we need your workaround.
I suppose another solution would be to use ShellExecute() to directly execute the PDF viewer, passing the document name as the fourth parameter. For example:
I suppose you could make your app drop a specific PDF viewer into the same folder as the executable is run from each time it is loaded - there are probably freeware ones available
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.