I am trying to fix the scaling issue when our application prints on other documents and then A4. There is an existing GetPrintableArea method, but it returns the same values no matter what mediaSize is:
public Size GetPrintableArea(PageMediaSize mediaSize)
{
_printQueue.CurrentJobSettings.CurrentPrintTicket.PageMediaSize = mediaSize;
var capabilities = _printQueue.GetPrintCapabilities(_printQueue.CurrentJobSettings.CurrentPrintTicket);
return new Size(capabilities.PageImageableArea.ExtentWidth, capabilities.PageImageableArea.ExtentHeight);
}
.PageImageableArea W / H always has the same values (761, 1090). And as far as I can see, this is the selected area for printing with a resolution for A4 (in units of 1/96 of an inch). How to get PageImageableArea printers for other documents like A3?
source
share