Ok guys/gals.
Now I've made apps for a number of years for work. Now some of these allow the user to print some data out. Rather than using a CommonDialog (which means an extra control) so they can select which printer, I've always printed to the default printer which isn't a problem. Now on our college network we can have 10 printers on each computer. Now if the user sets up the default printer they want to use then no problem, but they don't.
Now on Win9x/ME I can use
Call Shell("rundll32.exe shell32.dll,Control_RunDLL main.cpl @2", 1)
without a problem. This will show the printers in Control Panel and they can just right-click and set as default. I can't get this to work on Win2k/XP. It doesn't even show any errors. Does anyone know the correct code for showing the printers on WinNT. I've search this forum but no obvious answer comes back.
Thanks.![]()




Reply With Quote