I'm trying to set a specific printer as you've requested, but haven't managed it yet. If anyone else manages to get it working, please post code. I will if I succeed.
There are drawbacks though, if you do get it working.
1. Won't work in MDE
2. Won't work in Runtime enviroment.
3. In a secure app, will have to allow user design view rights.
Thanks GDGarth. The problem I am trying to avoid is the app printing to any other printer, including the default printer. It MUST print only to the specific printer and when we set these values through page setup it allows the app to print to a default. This then redefines the default printer for the app. What I need to do is define the printer specifically do that it will print only to that printer and generate an error message if that printer is not available.
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.