LazReport, identify more precisely the known 'std' windows papers

git-svn-id: trunk@40475 -
This commit is contained in:
jesus 2013-03-04 06:06:05 +00:00
parent bf7a97b65f
commit 945ca45177
2 changed files with 5 additions and 1 deletions

View File

@ -117,7 +117,8 @@ begin
Canvas.FillRect(aRect);
i := PtrInt(Items.Objects[Index]);
if (i>=1)and(i<256) then S:='W' else // Windows std paper size
if (i>=1)and(i<=MAX_TYP_KNOWN) then S := 'W' else // Known Windows std paper size
if (i>MAX_TYP_KNOWN)and (i<256) then S:='w' else // Unkknown Windows std paper size
if (i=256) then S:='U' else // User Defined paper size
if (i>=2000) then S:='I' else // Looks like an Input Slot
if (i>=1000) then S:='C' // Known Custom No-Std Paper Size

View File

@ -70,6 +70,9 @@ type
var
Prn: TfrPrinter;
const
MAX_TYP_KNOWN = 118;
implementation
type