yes, I seen that problem of the "default" printer going away. I believe that
the default printer is still set, but the "icon" does not show as such...
That code was/is designed to run on windows 95, 98, and thus it not the best
for windows XP (it does work as you note).Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=5816
With a2002 and later, there is a built in printer object, and thus you don'tReference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=5816
need my code anymore..
I don't have a solution to your problem, but it been a while since I looked
at that code.
You could try removing the code that is supposed "prevent this" problem.
So, try commenting out the
Call SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, ByVal "windows")
The above updates windows to show the correct default printer. Since you are
switching back, then remove the above line...it might fix your problem
because less effort will be made to show the "new" default printer that you
only use for a short time......
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada pleaseNOOSpamKallal@msn.com http://www.members.shaw.ca/AlbertKallal