Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enhancing GenrepoX
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00275737
Message ID:
00276178
Views:
25
>The genrepox Detail Extender doesn't seem to respect the frx field width!
>
>I think genrepox should cut off extended detail lines if the line won't fit within the width set for the field in the frx, like this:
>
>Extract from genrepox procedure GRXDet():
>
>CASE var_type$"MC"
> lvValue = ALLT(&field)
> IF NOT EMPTY(_det_pict)
> lvValue=TRAN(lvValue,_det_pict)
> ENDIF
> ** Here:
> ** Test if lvValue will fit within grx.width.
> ** If it won't, cut it to fit.
> lcGRXRetval=lcGRXRetval+lvValue
>
>Does anyone have any idea how we could test for this?

It can't be done easily. You'd have to calculate the width of the text displayed and you'd also have to calculate the available width which depends on the printer.

Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform