// This adjusts the paper size based upon the standard paper sizes
if RoundUp ({argReportsEx.HeightImperial}, 0) < 25 then
if RoundUp ({argReportsEx.WidthImperial},0 )< 9 then 8
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 10 then 9
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 12 then 11
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 13 then 12
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 19 then 18
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 25 then 24
else 30
I get an error msg "While attempting to display the report, the following error occurred: Anumber, currency... is expected here......."
if RoundUp ({argReportsEx.HeightImperial}, 0) < 25 then
if RoundUp ({argReportsEx.WidthImperial},0 )< 9 then 8
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 10 then 9
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 12 then 11
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 13 then 12
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 19 then 18
else if RoundUp ({argReportsEx.WidthImperial},0 ) < 25 then 24
else 30
I get an error msg "While attempting to display the report, the following error occurred: Anumber, currency... is expected here......."