>>Hi,
>>
>>I have a report that simply prints records in a cursor. For example, the cursor has two column COLUMN1 and COLUMN2. And a sample report looks like this:
>>
>>COLUMN1 COLUMN2
>>ABC 123
>>XYZ 766
>>GUB 111
>>
>>and so on.
>>
>>I want some records of this cursor to be printed in Bold Font. For example, the line:
>>
>>ABC 123
>>
>>
>>I can add a column COLUMN3 to this cursor and set the value of these rows/records to value True (in the COLUMN3).
>>But I don't know how to use this value, True, to change the font of the values in COLUMN1 and COLUMN2 to Bold.
>>
>>Any suggestions?
>>
>>TIA
>
>In VFP9, SET REPORTBEHAVIOUR 90, get properties of your report-textbox, find page
Dynamic or so. Add a rule (how ever it is named in English), within the rule set an expression and pick a FONT. The font holds bold. It's a bit obscure since underline is not in the font, but this is the way it goes.
>
>See crappy picture
>HTH
I will need to find if I have REPORTBEHAVIOUR set to 80 or 90. And will check your suggestion.
I also thought of another approach, after I posted the question. I can create another set of fields, exactly the same as the regular. But using the font Bold. Then place them over the existing. And create an IIF() in the field expressions to print only those that meet some COLUMN3 value. I have done it before when needed to show some values in the column red and some others in regular, black color.
I will try both approaches.
Thank you.
UPDATE. The second approach, creating a set of fields with font set to Bold and adding IIF() to the expression works.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham