Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting up the printer via VFP.
Message
From
10/11/1999 09:50:48
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00289543
Message ID:
00289552
Views:
40
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform