>Part1: Does anyone know what unit of measure is used in storing Height and Width in an FRX file (VFP 6). It looks too large for Foxels and Pixels, could it be Twips?
>
>Part 2: Is there a way of converting Foxels to Pixels and/or Twips?
>
>TIA
The .frx files use 1/100th of an inch. I've manipulated the .frx files programatically using the following formula. One pixel is equal to 104.167
For example:
Create a new report in the report designer and place one field on the report. Be sure that your gridscale is set to pixels. (Menu - Format - Set GridScale). Then close the report.
Open up the .frx file as a database and look for the record with objtype=8. This is your textbox field.
Replace the height with 520.835 and the width with 2083.340 and then close the file.
Open up the report in the report designer and your field's height should be 5 pixels (5 * 104.167 = 520.835) and the width should be 20 pixels (20 * 104.167 = 2083.340).
You can also move a field by changing the vpos and hpos fields. However you need to factor in the band height into your calculation. Let me know if you need the formula for that calculation.
Henry Petry
AeroHunter.com