From: Phil!Gregory Date: 21:09 on 20 Aug 2004 Subject: Delphi, Printing Right now I hate printing and I hate Delphi and I hate printers. Most printers we have at the office are smart. You hand it an 8.5"x11" thing-to-be-printed and it says, "Oh, that's letter-sized paper, which is in tray 2, so I;ll use that," and everyone's happy. I now have to deal with one that's dumb. It must be told which tray to use, for it it a simple printer and cannot figure these things out on its own. So my program must offer the user a choice of available trays and then pass that choice to the printer. And I can do that for some things, though I have to muck with the Windows API because Borland didn't feel like adding support in its TPrinter object. But I also use Quick Reports (comes with Delphi), and while it has a Tray setting, it's a predefined enumeration for which there's no good on-the-fly mapping to the actual printer's trays. And no way to provide arbitrary input on sending to arbitrary trays. I also have to print through Word. Its OLE interface doesn't seem to have any provision for tray selection. Hooray for not having standards. Hate, hate, hate.
Generated at 10:28 on 16 Apr 2008 by mariachi