c# - How do I find PageImagableArea for other papersizes -
im trying fix scaling issue when our application prints on other papersizes a4. there existing method called getprintablearea, returns same values regardless of 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); }
capabilities.pageimageablearea w/h set same values (761, 1090). , far can see selected printers imageable area a4 (in 1/96" units). how printers pageimageablearea other papersizes example a3?
Comments
Post a Comment