Groups | Blog | Home
all groups > sql server reporting services > september 2005 >

sql server reporting services : textbox and two font


daw
9/1/2005 6:26:11 AM
I don't know the exact expression that you need, but if you click on the
textbox and go to the Font properties for it, you can create an expression
that sets the FontStyle based on the value.

[quoted text, click to view]
Stephen
9/1/2005 9:22:20 AM
Do you mean conditional formatting, like if the textbox contains a
number then bold it, else use italics; or do you mean to apply the
bold/italics to data that may contain both, based on thier type?
Martin Jau
9/1/2005 1:32:04 PM
hello,

can i use two fonts in one textbox?

----------------------
|Number is bold |
|text is italic |
----------------------


Martin



MJ Taft
9/1/2005 3:07:03 PM
Something like this (I am not sure what to code for the numeric ck) but you
can put expressions like this in these property for the textbox you want them
to apply to. The 2 properties are FontWeight and FontStyle. Drop down in
the properties and choose <expression>

for the FontWeight property:

=IIF(ReportItems!TextBox1.value IS Numeric, Bold, Normal)

for the FontStyle property :

=IIF(ReportItems!TextBox1.Value NOT Numeric, Italics, Normal)

[quoted text, click to view]
MJ Taft
9/1/2005 3:26:02 PM
OK ... I just *had* to figure this out for myself so here is the answer. If
I understood you correctly to want conditional formatting based upon if
textbox1 contained a number or text. If a number then make the number BOLD
weight, if text then make the style ITALIC. If that is correct here is what
you do.

for the FontWeight property:

=IIF(IsNumeric(Me.Value), "Bold", "Normal")

for the FontStyle property :

=IIF(IsNumeric(Me.Value), "Bold", "Italic")


[quoted text, click to view]
MJ Taft
9/1/2005 4:34:02 PM
Sorry ... I made a typo in there when putting it in here ... the FontStyle
should be "Normal" or "Italic" not "Bold" that isnt a valid FontStyle

[quoted text, click to view]


[quoted text, click to view]
Martin Jau
9/2/2005 12:00:00 AM
Hello Stephen,
I meant the second point,
text box contain number and text
however only the number should be Bold and the text Italic.

like this
Fields!KostenstellenNr.Value & vbcrlf & vbcrlf & Fields!AuftragBez.Value
Bold Italic

cu Martin

"Stephen" <switter@enpathmed.com> schrieb im Newsbeitrag
news:1125591740.077139.288850@z14g2000cwz.googlegroups.com...
[quoted text, click to view]

Martin Jau
9/2/2005 12:00:00 AM
Hello MJ Taft
i meant number in the first row then text in the second row in ONE textbox

cu Martin

"MJ Taft" <MJTaft@discussions.microsoft.com> schrieb im Newsbeitrag
news:8AE71945-D052-42C0-8CE4-2FD2B015DC5E@microsoft.com...
[quoted text, click to view]

Stephen
9/2/2005 7:05:28 AM
After a little research I found this thread:

http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/browse_thread/thread/43ac1ca4cd5128ef/452f052d3f012adf?lnk=st&q=reporting+services+use+html+tags&rnum=1&hl=en#452f052d3f012adf

What you are looking for is a rich text control and that is not a
feature available in the current versions to my knowledge. I was
hoping you could use html tags in your textboxes but it appears that is
not supported either.
AddThis Social Bookmark Button