>Hi
>I need to make an intelligent function wich decide the orientation and font size automatically receiving as parameter the maximum length of a field into a dbf file.
>
>Using the help file, i found that _prtinfo() gfives all the information, but i need to determine the lines per page that i can print.
That's going to depend on the fonts you're using and the line spacing; there's no way to make a guess without knowing that, and if you know that, it's easy enough to compute...
Once the font and spacing are selected, you can determine the height of a character using the FONTMETRIC() function - values that may be helpful are the arguments 1 and 20. The FONTMETRIC() function is in the VFP docus; you'll also want to seach the MSDN for information on the TEXTMETRIC entry from the
Windows Programmer's Reference Manual