🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual
Article #269

Controlling printer in vb

#269
From: Henning Berggren J�rgensen
Date: Mon, 15 Oct 2001 16:35
15 lines
1841 bytes
Hey there

Anyone knows how to control printer trays while printing in vb via another
application?

Ie. I want to print out a pdf document, but page 1 on a paper from tray #1
and the rest from tray #2. You can set the tray from inside vb with
Printer.PaperBin, but this doesn't apply when I use another application such
as Acrobat Reader to do the printing.

I've come across an idea of setting the system default printer and make some
API calls to control trays, and then printing from the application, but
there must be a nicer way around...

Regards, Henning
Technical Details
Message-ID: <LeEy7.1194$zD6.3202@news.get2net.dk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed1.bredband.com!bredband!newsfeed1.uni2.dk!news.get2net.dk!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110e3b,8d3bbe162b93567c,start
X-Google-Attributes: gid110e3b,public
X-Google-Thread: f51ba,8d3bbe162b93567c,start
X-Google-Attributes: gidf51ba,public
X-Google-Thread: f645d,8d3bbe162b93567c,start
X-Google-Attributes: gidf645d,public
X-Google-ArrivalTime: 2001-10-15 09:34:53 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed1.bredband.com!bredband!newsfeed1.uni2.dk!news.get2net.dk!not-for-mail
From: "Henning Berggren J�rgensen" <henning.berggren@NSget2net.dk>
Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.misc,dk.edb.programmering.basic.visual-basic
Subject: Controlling printer in vb
Keywords: print tray paper bin
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <LeEy7.1194$zD6.3202@news.get2net.dk>
Date: Mon, 15 Oct 2001 18:35:44 +0200
NNTP-Posting-Host: 195.82.196.139
X-Complaints-To: abuse@get2.net
X-Trace: news.get2net.dk 1003163691 195.82.196.139 (Mon, 15 Oct 2001 18:34:51 MET DST)
NNTP-Posting-Date: Mon, 15 Oct 2001 18:34:51 MET DST
Organization: get2net Internet Kunde