Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Part of the string - in Bold
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00461366
Message ID:
00463194
Vues:
50
Hi Marty,

I'm trying your idea now. I got very weird results.
I put two fields: one alltrim(Buyer) in Times New Roman, Bold, 8
Another
space(_screen.TextWidth(alltrim(buyer))/_screen.TextWidth(" "))+", "+Address
+ etc. Only first record shows Address part. Other records don't show Address at all. Perhaps, we can not use _screen object in a Report. May be I have to do through UDF.

>PMFJI,
>
>Hey Nadya,
>
> Another angle you could take on Vlad's original suggestion is to use _SCREEN.TextWidth() instead of the command TXTWIDTH(). You'd need to set the the _SCREEN fontname/size to the same as your report form. If that's not acceptable, you could create a non-visible form object (forms have textwidth() too) and just call its method.
>
>The difference between _SCREEN.TextWidth() and TXTWIDTH is that the former returns the actual width in pixels, not the average. Using the actual width would prevent the trouble you're having with the comma not lining up.
>
>HTH,
>
>Marty
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform