Results 1 to 2 of 2

Thread: Which Printer Please......

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316

    Post

    I have a little app that prints to serial printers.

    This is working great but I need to share these printers

    at the moment I am useing mscomm1.output =
    to print but I want to use windows printers

    how do I start Please.........

  2. #2
    Guest

    Post

    You can use the commondialog to select the installed printers in your windows. And when you want to print text, graphics or whatever. you can use the printer type.

    Code:
    Printer.CurrentX = 1000 'set the x position
    Printer.CurrentY = 1000 'set the y position
    Printer.Print "Visual Basic Will Rule The Earth!"
    Printer.EndDoc
    But if you only want to select a printer. You have to place a commondialog on your form or use the commondialog api
    to select a printer for the end-users.

    Code:
    Commondialog.ShowPrinter
    'place your code under it. so vb will use the selected
    'printer.
    -Kayoca Mortation

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