Results 1 to 5 of 5

Thread: How to assign a printer

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Posts
    303

    Cool

    How do I assign a specific printer to my Printer.devicename?

    Thanks in advance for your help.


  2. #2
    Guest
    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]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Posts
    303
    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

  4. #4
    Guest
    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


  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Posts
    303

    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
  •  



Click Here to Expand Forum to Full Width