Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enhancing GenrepoX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00275737
Message ID:
00276178
Vues:
24
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform