>I need to know what are the dimensions of the paper for the selected printer.
>This can be knowing the paper name, like "letter", "A4", etc or just the dimensions.
>
>VFP brings the PRTINFO() function, but sometimes it returns -1, when it cannot obtain these data from the printer.
>
>
3 PRT_PAPERLENGTH - Paper length in .1 millimeter increments
>4 PRT_PAPERWIDTH - Paper width in .1 millimeter increments
>
>Is it possible to obtain in another way ?
>
>
>There's an excellent FAQ from Sergey Berezniker, "
Enumerating printer forms under Windows NT/2K/XP" FAQ# 22445, but it returns all available papers, and not the selected paper.
>
>Is there a way to obtain the selected paper for the printer ?
Hi Cesar,
AFIAK, the PRTINFO(2) returns Paper Size # that directly corresponds to the Priner Form #.
--sb--