Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Frx scale unit
Message
 
To
18/08/1999 09:22:45
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00254900
Message ID:
00254955
Views:
19
>Whoops....I thought you meant SCX not FRX....I don't think the height and width are pixels in the report form. I don't know what they are but they appear to be n/10000 = inches, so if an object in the FRX has a width of 2500.000 it's .25 inches.

You are right, n/10000 = inches as confirmed by this extract from a constants definition file from Doug Hennigs' Report Objects class (FoxTalk June 99):

* Other constants:

#define cnPOINTS_PER_INCH 72

* cnVERTICAL_FUDGE is a "fudge factor" used so objects are correctly placed.

#define cnVERTICAL_FUDGE 2

* cnPEN_RED_FUDGE is a "fudge factor" for the PEN_RED value in an FRX.

#define cnPEN_RED_FUDGE 4

* cnREPORT_UNITS is the number of report units (a value used for all
* measurements inside the FRX) per inch

#define cnREPORT_UNITS 10000

* cnFACTOR is the number of report units per pixel. It's calculated as report
* units per inch (10,000) divided by pixels per inch (96). 10000/96 = 104.166.

#define cnFACTOR 104.166

* cnBAND_HEIGHT is the height of the band separator, which is 20 pixels or
* 2083.333 report units.

#define cnBAND_HEIGHT 2083.333

* cnGROUP_OFFSET is what to add to a group number for group breaks.

#define cnGROUP_OFFSET 6

* ccAVG_CHAR is the "average" character in a font used to determine object
* sizing.

#define ccAVG_CHAR 'N'
Vidar Johannessen
Previous
Reply
Map
View

Click here to load this message in the networking platform