Zmena veľkosti papiera a zásobníka
2,830 zobrazení 18.02.2002 o 00:00 pridal igoZmena veľkosti papiera a použitého zásobníka. Pokračovanie článku »
Pridaj komentár ako prvý »Zmena veľkosti papiera a použitého zásobníka. Pokračovanie článku »
Pridaj komentár ako prvý »Under Win16, call the Windows API function Escape(), passing the constant GETPRINTINGOFFSET. Under Win32, simply call the Windows API function GetDeviceCaps() passing the predefined constants PHYSICALOFFSETX and PHYSICALOFFSETY. Since there is no guarantee a given escape is supported, always call Escape with the QUERYESCSUPPORT constant to make sure a given escape is implemented. The following example returns the margin of a given printer under both WIN16 and WIN32, accounting for the fact that not all printers will support the escape code GETPRINTINGOFFSET (under WIN16). If this is the case, the printing offset is approximated by getting the page size, subtracting the physical resolution of the device, and then diving by two. Pokračovanie článku »
Pridaj komentár ako prvý »