Selecting a printer in code

Can someome please tell me how I can select a printer in code?

I need to print on 8.5 by 11 for one report, and to print a label on a label printer for another report.

I would like an example of how to choose the printer in code without showing the printer dialog box.

Thanks, Art

Comments

  • : Can someome please tell me how I can select a printer in code?
    :
    : I need to print on 8.5 by 11 for one report, and to print a label on
    : a label printer for another report.
    :
    : I would like an example of how to choose the printer in code without
    : showing the printer dialog box.
    :
    : Thanks, Art
    Through trial and error (mostly error), I found the secret. Just in case someone else has this requirement, here is the code.

    Me.printdoc.PrinterSettings.PrinterName = "My Printers name"

    Hope this helps someone else out.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion