Results 1 to 4 of 4

Thread: Printers collection and stuff...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    LoCal
    Posts
    280
    How do I find out what the default printer is?

    From what I've read in MSDN I can set the default printer for my application by:

    Set objPrinter = Printers(i)

    But how do I find out which is the default printer so I can set it back to that once I'm done printing?

    Is there another way of printing to a printer without setting it as a default printer?

    I've got several DataReports in my application but some of them need to go to different printers. I guess I'm just floundering about looking for the best way to do this...

    Thanks...
    Achichincle

    VB6 (VSEE SP5, W2KPro)
    ASP
    HTML

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    LoCal
    Posts
    280
    Ok. Related to this is another question:

    My application will have to print on a network printer. How can I implement a 'setup'-type process whereby I can specify, for a given client computer, what the network printer it should print to.

    Clearer. My application has to print one report on a printer attached to a server on the network. All clients will print that specific report to that specific printer. I envision a process whereby I can go into a Preferences section of my application and specify the target printer for that particular report. Since the clients may have the printer attached with different names I cannot assume that it will always have the same name regardless of the client (and therefore cannot hardcode it, which wouldn't be smart anyway...)

    Ideas?
    Last edited by Achichincle; Mar 7th, 2001 at 01:49 PM.
    Achichincle

    VB6 (VSEE SP5, W2KPro)
    ASP
    HTML

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    LoCal
    Posts
    280
    Come on guys, I know you know...
    Achichincle

    VB6 (VSEE SP5, W2KPro)
    ASP
    HTML

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Can't you just use the common dialog control and use
    Code:
    Private Sub Command1_Click()
    CommonDialog1.ShowPrinter
    End Sub

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