Feb 1, 2008 #1 dedo8816 Programmer Oct 25, 2006 94 GB How can i pre-select a printer via its name or network address without having to use a printer dialog box? Thanks
How can i pre-select a printer via its name or network address without having to use a printer dialog box? Thanks
Feb 1, 2008 #2 Andrzejek Programmer Jan 10, 2006 8,502 US You may start with: Code: Dim prt As Printer For Each prt In Printers Debug.Print prt.DeviceName Next prt Have fun. ---- Andy Upvote 0 Downvote
You may start with: Code: Dim prt As Printer For Each prt In Printers Debug.Print prt.DeviceName Next prt Have fun. ---- Andy
Feb 8, 2008 #3 AccessGuruCarl Programmer Jul 3, 2004 471 US Hello dedo8816 Take a look at this thread. http://www.tek-tips.com/viewthread.cfm?qid=892456 Scroll down about 4 or 5 posts and look for the code I posted for getting/setting printers. Make sure you get the all the code, their is a seperate function posted in another post a few posts down. I forgot to post with the orginal code. Not sure if this will resolve your problem, but it's worth a try! AccessGuruCarl Programmers helping programmers you can't find a better site. Upvote 0 Downvote
Hello dedo8816 Take a look at this thread. http://www.tek-tips.com/viewthread.cfm?qid=892456 Scroll down about 4 or 5 posts and look for the code I posted for getting/setting printers. Make sure you get the all the code, their is a seperate function posted in another post a few posts down. I forgot to post with the orginal code. Not sure if this will resolve your problem, but it's worth a try! AccessGuruCarl Programmers helping programmers you can't find a better site.