Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bold Font of Some Records
Message
De
11/03/2022 12:41:19
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
11/03/2022 12:28:15
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01683804
Message ID:
01683820
Vues:
31
>>>>The second texbox value is:
>>>>
>>>>iif( COLUMN3, "", COLUMN1)
>>>>
>>>>
>>>>Depending on the value in COLUMN3, only one textbox is printed.
>>>
>>>Acually, they are both printed, except one has "". But with PrintWhen you can control other things too - not just textboxes: lines, images etc.
>>>Imagine that instead of one being bold, it had a border. You'd still see the border, as both would be printed, one empty (with border) and the other with column1 and no border. I'm not even sure how this would look, would one of them cause a newline or not.
>>>
>>>To me it looks simpler to have a simple field value in each, then in one's PrintWhen you have "column3", in the other's "not column3".
>>>
>>>Disclaimer: between 2006 and now I used fox reports maybe 20 times.
>>
>>I do have Not to Print when empty in PrintWhen. So, both are not printed. Just the one which has some entry.
>
>No. Both fields are printed. There space is used. Only they print the empty string. Only the Print When expression can turn printing a field off or on.
>(Ok, I know different ways, but I guess dealing with Report Listeners is not something you do)
>
>As soon as you do small mistakes you will see the difference.

He meant "do not print when blank" checkbox, which I actually don't remember as a property of a control (but then I've already developed a deja vu amnesia - there are things I forgot multiple times) but perhaps as a setting on whole bands... Never mind, that would also work. Except now it's becoming complicated - there's a conditional expression in both values, there's this "skip when blank" applied to two controls... just having proper PrintWhen makes it far simpler, IMO.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform