|
-
Oct 18th, 2000, 12:56 PM
#1
Thread Starter
Hyperactive Member
How do I assign a specific printer to my Printer.devicename?
Thanks in advance for your help.
-
Oct 18th, 2000, 01:00 PM
#2
this will set a printer to be used by your application
Code:
Dim prn As Printer
For Each prn In Printers
If UCase$(prn.DeviceName) = "Name of a printer here" Then
Set Printer = prn
Exit For
End If
Next
[Edited by larryn on 10-18-2000 at 06:35 PM]
-
Oct 18th, 2000, 01:11 PM
#3
Thread Starter
Hyperactive Member
Thanks, Larryn. Is that the only way I can
choose my printer? That is what I am doing
now, but I have 50+ printers and it just seems
it has got to be a better way.
Thanks, though for your reply.
Jay
-
Oct 18th, 2000, 02:46 PM
#4
that is the only way that i know of,
it is quick, does the job.
the only other way that i know of is a freeware
program written by Edward Brophy that sets the
default printer called sdp.exe
i have a copy if you want it let me know.
that was written in C++ but you can call it from
shell()
let me know if you need more information about it
-
Oct 18th, 2000, 03:01 PM
#5
Thread Starter
Hyperactive Member
Thanks, Larryn
You are right. It is not that slow. I will keep it
just the way it is.
Again, thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|