Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2004
    Location
    Greenville, SC
    Posts
    271

    Unanswered: code to print on different printers

    Is there code I can write to send for separate buttons, to print to different network printers?
    I am fairly new to coding so any help would be great!


    Michael
    Gotta to do some code

  2. #2
    Join Date
    Mar 2004
    Location
    Greenville, SC
    Posts
    271
    I want to create buttons for 3 different printers. Then have them print to each accordingly, on our network. What code do I need to write?

    Thank You,
    Michael
    Gotta to do some code

  3. #3
    Join Date
    Sep 2004
    Posts
    161
    What you want ?
    Button 1 ==> Printer 1
    Button 2 ==> Printer 2
    Etc... ?
    or
    Use the Printer define in the Registry key ?
    Where this buttons must appairs ? Before running the report, On the preview ?

  4. #4
    Join Date
    Mar 2004
    Location
    Greenville, SC
    Posts
    271
    i'm sorry, maybe I was not clear. I have now a button to print now. I want to create 2 more buttons to print in 2 other locations. How do I write the code to redirect the info to the other printers???


    Michael
    Gotta to do some code

  5. #5
    Join Date
    Sep 2004
    Posts
    161
    You can play with two properties : PrtDevNames (for the printer name) and PrtDevMode (for the driver of the printer).
    You can find more information here
    http://www.mvps.org/access/reports/rpt0009.htm

  6. #6
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb

    You can still have one Button and print on many diffrent printers
    Just use
    DoCmd.RunCommand acCmdPrint
    To bring you up the print dialog to choose the desired printer, number of pages, and, ....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •