Can one get the size of the paper in device units (pixels) such that OnPrepareDC can set the viewport extent to be appropriate for the printer paper and not the screen? I also tried using m_rectDraw, but the data that it returned didn't seem useful. The function is supposed to…