Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!samsung!uunet!microsoft!chrisg From: chrisg@microsoft.UUCP (Chris GUZAK) Newsgroups: comp.windows.ms.programmer Subject: Re: How do you get the printable region of the page? Message-ID: <70287@microsoft.UUCP> Date: 29 Jan 91 03:35:00 GMT References: <28323@cs.yale.edu> Reply-To: chrisg@microsoft.UUCP (Chris GUZAK) Organization: Microsoft Corp., Redmond WA Lines: 10 In article <28323@cs.yale.edu> spolsky-joel@cs.yale.edu (Joel Spolsky) writes: >What is the "best" way to find out what the printable region of the >printer is? GetDeviceCaps(HORZSIZE) & GetDeviceCaps(VERTSIZE) give you the dx and dy. Escape(GETPRINTINGOFFSET) will give you the offset from the upper left corner (x, y). In general the upper left corner is not 0,0. >Joel Spolsky // And these streets, Quiet as a sleeping army >spolsky@cs.yale.edu // Send their battered dreams to heaven. _Paul Simon