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" wrote:
> 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)
>
> "Martin Jau" wrote:
>
> > hello,
> >
> > can i use two fonts in one textbox?
> >
> > ----------------------
> > |Number is bold |
> > |text is italic |
> > ----------------------
> >
> >
> > Martin
> >
> >
> >
> >
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] > for the FontStyle property :
>
> =IIF(IsNumeric(Me.Value), "Normal", "Italic")
[quoted text, click to view] "MJ Taft" wrote:
> 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")
>
>
> "MJ Taft" wrote:
>
> > 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)
> >
> > "Martin Jau" wrote:
> >
> > > hello,
> > >
> > > can i use two fonts in one textbox?
> > >
> > > ----------------------
> > > |Number is bold |
> > > |text is italic |
> > > ----------------------
> > >
> > >
> > > Martin
> > >
> > >
> > >
> > >
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] > 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?
>
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] > 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")
>
>
> "MJ Taft" wrote:
>
> > 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)
> >
> > "Martin Jau" wrote:
> >
> > > hello,
> > >
> > > can i use two fonts in one textbox?
> > >
> > > ----------------------
> > > |Number is bold |
> > > |text is italic |
> > > ----------------------
> > >
> > >
> > > Martin
> > >
> > >
> > >
> > >
> > >
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.
Don't see what you're looking for? Try a search.