spolsky-joel@cs.yale.edu (Joel Spolsky) (01/24/91)
Hi, a quick question: The SDK refs are a little unclear about this. What is the "best" way to find out what the printable region of the printer is? Do I have to figure this out myself or is there an easier way? I am printing on a PostScript printer, and I noticed that coordinates (0,0) are the literal top left of the page. So is there an easy way to figure out where I can print? Thanks a zillion in advance, -- Joel Spolsky // And these streets, Quiet as a sleeping army spolsky@cs.yale.edu // Send their battered dreams to heaven. _Paul Simon
chrisg@microsoft.UUCP (Chris GUZAK) (01/29/91)
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