Set font on part of an text field

Stimulsoft Reports.NET discussion
Post Reply
Kenneth Jonsson
Posts: 9
Joined: Wed Jun 13, 2007 7:20 am
Location: Sweden

Set font on part of an text field

Post by Kenneth Jonsson »

I wish to output two db fields in one text field: "table.column_a : table.column_b". The user wishes to have the column_a text in bold, but column_b in regular font. Is that possible? I tried to make a short textfield för column_a an let it overflow itnto the second field but that did not work.

In HTML it would be made this way: "column_a: column_b".
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Set font on part of an text field

Post by Edward »

Sorry, in one StiText component it is impossible. Please use RichText component for this task instead.

Thank you.
Kenneth Jonsson
Posts: 9
Joined: Wed Jun 13, 2007 7:20 am
Location: Sweden

Set font on part of an text field

Post by Kenneth Jonsson »

Thank you for the explanation.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Set font on part of an text field

Post by Edward »

Let us know if some help will be necessary for you.

Thank you.
Kenneth Jonsson
Posts: 9
Joined: Wed Jun 13, 2007 7:20 am
Location: Sweden

Set font on part of an text field

Post by Kenneth Jonsson »

Nice of you to ask. I tried the GetValue event handler:
e.Value = "\b" + ToString(Activity.Component.name) + "\b0" + " : " + ToString(Activity.description);

Now, that did not work. Do you have an alternative syntax to achive the bolding of the first item?

Cheers!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Set font on part of an text field

Post by Edward »

Please use the technique which is described in our documentation:

http://www.stimulsoft.com/Documentation ... tvalue.htm

Thank you.
Post Reply