🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1169

Re: How do you get the printable region of the page?

#1169
From: Chris GUZAK
Date: Tue, 29 Jan 1991 03:35
10 lines
1004 bytes
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
Technical Details
Message-ID: <70287@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!samsung!uunet!microsoft!chrisg
References: <28323@cs.yale.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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