Results 1 to 3 of 3

Thread: Printing From Access and choosing the printer tray

  1. #1

    Thread Starter
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774

    Unhappy Printing From Access and choosing the printer tray

    For one reason or another I need to be able to print to two different trays on the same printer from Access 2000 / XP. One way is to access the printer and switch trays the other is to install "two" printers (the same one twice) and set each to use a different tray by default.

    Both ways requrie that I Use Access 2000 and talk to the printers or select the printer from code.

    I've looked at this thread: http://vbforums.com/showthread.php?t...printer+access but Access tells me there is no such object as Printer and I've also found some tutorials for word that access the windoews API.

    Despite some pritty good guesses as to the possible references (DLLs) I'm no further along in my quest.

    It's gotten a bit desperate as the "boss" has prommised that this project will be installed this tuesday. (thanks "mate".)

    Any ideas.
    ?
    'What's this bit for anyway?
    For Jono

  2. #2
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Printing From Access and choosing the printer tray

    You can try and change the DefaultSource property in the PrtDevMode on the report..

    Check out PrtDevMode in the Access VBA Help, if you don't have it I'll post the full explanation.

    The coding method you would need would be to open the report in designview, change the defaultsource to the tray required, save, close and re-open the report in print view and then repeat for the next tray.
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  3. #3

    Thread Starter
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774

    Re: Printing From Access and choosing the printer tray

    Quote Originally Posted by dannymking
    You can try and change the DefaultSource property in the PrtDevMode on the report..

    Check out PrtDevMode in the Access VBA Help, if you don't have it I'll post the full explanation.

    The coding method you would need would be to open the report in designview, change the defaultsource to the tray required, save, close and re-open the report in print view and then repeat for the next tray.
    That sounds acceptable... any code at this stage even if it is an example will be very helpfull.

    I'm off to look this stuff up in the help as advised.
    ?
    'What's this bit for anyway?
    For Jono

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