January 5, 2010 at 12:12 pm
I have a field that looks like the one below and would like to make the Title: Author: and File text bold.
Title: Title of report
Author: Some Author
File: some_document.doc
I started out trying to use replace but if I put the html bold tags outside the "Title" quotation marks, report server errors out. If I put them inside the "Title" Quotation marks then I see the html tags in my report.
=(Replace(Fields!AnalysisReference_Value.Value,"Title","Title"))
I also tried to use the below bold function but it also displays the html tages on the page instead of making the title bold.
-------------------------------------------------
Function bold(strInput, strSearch)
Dim istart
Dim iend
Dim icur
Dim strOutput
dim intLen
strOutput = strInput
intLen = Len(strSearch)
icur = 1
istart = InStr(icur, strOutput, strSearch, 1)
Do While istart
strOutput = Left(strOutput, istart - 1) & "<b>" & Mid(strOutput, istart, intLen) & "</b>" _
& Mid(strOutput, istart + intLen)
icur = istart + intLen + 7
istart = InStr(icur, strOutput, strSearch, 1)
Loop
bold = strOutput
End Function
---------------------------------------------------
Anyway to make the Title: bold in a report server 2005 report?
Thanks
January 5, 2010 at 10:15 pm
I think this is impossible. Only way is to make the textbox into two, one for 'Title:' and another for 'Title of report '.
Then make the first text box bold.
January 5, 2010 at 11:24 pm
I must be missing something. Can you not set the Font properties of the Textbox to bold?
January 9, 2010 at 9:11 am
January 9, 2010 at 10:17 am
sounds like it may be more work that what it is worth. The reference field can have one or multiple references, some have as many as 5 or 6 references all in one field in the db.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply