The hp5 i use, does not return valid A4 sizes.
Would like to know the physical pagesize and printable area.
The printable area seems to work ok.
But the ph. size looks if it was recalculated: A4 - printable area or sort of..
Maybe someone has a good tip to collect the sizes for w95 and nt?
My code used;
Note that A4 = 21 x 27 = 16840 x 11908 twips
Thanks,
Would like to know the physical pagesize and printable area.
The printable area seems to work ok.
But the ph. size looks if it was recalculated: A4 - printable area or sort of..
Maybe someone has a good tip to collect the sizes for w95 and nt?
My code used;
Code:
'// Printing offset Escape hDC, %GETPRINTINGOFFSET, ByVal 0&, ByVal 0&, pt If pt.x = 0 Then pt.x = GetDeviceCaps( hDC, %PHYSICALOFFSETX ) pt.y = GetDeviceCaps( hDC, %PHYSICALOFFSETY ) End If '// Physical Escape hDC, %GETPHYSPAGESIZE, ByVal 0&, ByVal 0&, ptf If ptf.x = 0 Then ptf.x = GetDeviceCaps( hDC, %PHYSICALWIDTH ) ptf.y = GetDeviceCaps( hDC, %PHYSICALHEIGHT ) End If
Thanks,
Comment