THIS IS WHAT I DO:
Dim lG As Graphics = pD.PrinterSettings.CreateMeasurementGraphics()
Dim lHdc As IntPtr = lG.GetHdc()
leftOffsetP = GetDeviceCaps(lHdc, PHYSICALOFFSETX)
topOffsetP = GetDeviceCaps(lHdc, PHYSICALOFFSETY)
printableWidthP = GetDeviceCaps(lHdc, HORZRES) 'Width in pixels,
printableHeightP = GetDeviceCaps(lHdc, VERTRES) 'Height in raster lines
lG.ReleaseHdc(lHdc)
lG.Dispose()
THIS IS WHAT I THINK:
lG, as define above, also maintains the default settings
pD.PrinterSettings.DefaultPageSettings maintains the default settings
pD.DefaultPageSettings tracks the current settings
That is, if the app changes the paper size, for example, the latter one
shows the change while the first two do not.
IS THAT RIGHT?
HOW CAN I OBTAIN THE PRINTABLE DIMENSIONS OF
THE CURRENT PAPER SIZE??
Thanks for any help