See MSKB#
Q131201 and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/foxhelp98/lngprtinfolp_rp.asp for the printer settings.
The paper length/width is stored in .1mm increments. For example, the custom size paper 10" x 5"
PAPERSIZE=256
PAPERLENGTH=2540
PAPERWIDTH=1270
>Hi Nadya
>
>a slight tangent from the original problem. I have a report which I have developed using a dummy printer called "fitanything" with paper size of "fitanything" which is a combination of A4 and Letter.
>
>I have a groovy process which runs through each report class and queries the name of the frx and gets the orientation. It then opens the frx, clears the expr field and reinstates the orientation. All is well until I change to another printer and it picks up the default paper size for the printer.
>
>My guess is that I need to set a papersize. "fitanything" is obviously a custom size so my user's don't have it. I've looked at prtinfo() and see I can set the papersize but it gives no clues about the syntax, the units (mm, inches) etc. Can you help me find that information?
>
>regards
>
>Sarah
--sb--