From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com> Subject: Re: Changing paper trays Date: 19 Aug 1999 00:00:00 GMT Message-ID: Content-Transfer-Encoding: 8bit References: <7pf1lu$2kl5@forums.borland.com> Content-Type: text/plain; charset=iso-8859-1 Organization: TeamB Mime-Version: 1.0 Reply-To: 100113.1101@compuXXserve.com Newsgroups: borland.public.delphi.vcl.components.using In article <7pf1lu$2kl5@forums.borland.com>, David M. wrote: > Is there a way to specify a paper tray to use using delphi standard > components? TPrinter handles printer changes, but not paper trays, as far as > i can tell. > YOu have to drop down to the API level and modify the TDeviceMode (API DEVMODE) record for the selected printer. Usually the printer itself selects a tray based on the requested paper format, so you specify a paper format, not a tray. The TDeviceMode record has a field dmDefaultSource which specifies the tray. The docs mark this field as reserved, must be 0, though... Peter Below (TeamB) 100113.1101@compuserve.com) No e-mail responses, please, unless explicitly requested!