Size of DC in print preview?

I'm playing with Robin's print framework demonstration from chapter 17.

My DC for drawing the print preview always ends up being sized at (539, 716). These numbers seem to have no relation to letter size paper in any known system of units. Even the proportion is a bit wrong.

Is this "just a number" and don't worry your pretty little head?

Or do I need to visit a mountaintop somewhere and become learned in Numerology?

Michael

Michael Hipp wrote:

My DC for drawing the print preview always ends up being sized at (539, 716). These numbers seem to have no relation to letter size paper in any known system of units. Even the proportion is a bit wrong.

Slight correction. Sometimes it comes up as (539, 707). Not sure why the difference.

But I'm mostly concerned about the proportion. Using those numbers above it should come out to something like (546, 707) if you take the 707 number as representing the 11" height.

Not a big error percentage-wise. But most other numbers like those seem to come out correct even to several decimal places.

Thanks,
Michael

Michael Hipp wrote:

Slight correction. Sometimes it comes up as (539, 707). Not sure why the difference.

But I'm mostly concerned about the proportion. Using those numbers above it should come out to something like (546, 707) if you take the 707 number as representing the 11" height.

Take a look at the wxWidgets docs about printing -- I THINK that the DC represents the "printable area" of the page, so if the printer can't print within, say 1/4" of the edge, that isn't included. This may well explain why you don't have an exact 8-1/2:11 ration

You also need to know that to get things aligned correctly.

-Chris

ยทยทยท

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov