>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