In textbox data is coming from the custom code as below
Public Function GetDataYesNo(ByVal value As String) As String
Dim str As String
str = "<ul><li>"
Dim val As String
Dim i As Integer
For i = 0 To 2
str = str & "<span class='inner-label'><div class='radio' > <span><input type='radio' style='opacity: 0;'></span> </div>"
If (i = 0) Then
If (value = "Y") Then
val = "<b><font color='blue'>" & "Yes" & "</font></b>"
Else
val = "Yes"
End If
ElseIf (i = 1) Then
If (value = "N") Then
val = "<b><font color='blue'>" & "No" & "</font></b>"
Else
val = "No"
End If
Else
If (value = "X") Then
val = "<b><font color='blue'>" & "None" & "</font></b>"
Else
val = "None"
End If
End If
str = str & val
str = str & "</span>"
Next
str = str & "</li></ul>" 'str ="<a href='file:///C:\inetpub\wwwroot\Filesanywhere\Images\Flags\in.gif'/>" & "<li><input type='radio' style='opacity: 0;' >Male '<input type='radio' style='opacity: 0;'>Female <input type='radio' style='opacity: 0;'>Child </li>"
Return str
End Function
I want to add the a image file in between text. As Textbox is supporting the <font>,<li> and other tags.
None
0 Points
4 Posts
How to add Image into TextBox in RDLC reports
Oct 03, 2012 02:09 AM|PiyushFaw|LINK
I want to add a images in textbox control in RDLC files using the <a> tag or <img> tag.
I know texbox control supports limited HTML tags in RDLC.but
Is there any way to add the images in RDLC reports with out using the the Image control.
OR
can we add the image control in text box control.
Participant
939 Points
676 Posts
Re: How to add Image into TextBox in RDLC reports
Oct 03, 2012 04:31 AM|DreamBig|LINK
I guess, for adding images you need a image control.
By the way, u want to show a static image or image is coming from db?
alternatively check these links - http://msdn.microsoft.com/en-us/library/ms156388.aspx
http://kiavashshakibaee.blogspot.in/2008/07/display-database-image-in-ssrs-from.html
My Blog
None
0 Points
4 Posts
Re: How to add Image into TextBox in RDLC reports
Oct 03, 2012 05:02 AM|PiyushFaw|LINK
Hi DreamBig,
I want to add image in textbox's placeholder.
In textbox data is coming from the custom code as below
Public Function GetDataYesNo(ByVal value As String) As String
Dim str As String
str = "<ul><li>"
Dim val As String
Dim i As Integer
For i = 0 To 2
str = str & "<span class='inner-label'><div class='radio' > <span><input type='radio' style='opacity: 0;'></span> </div>"
If (i = 0) Then
If (value = "Y") Then
val = "<b><font color='blue'>" & "Yes" & "</font></b>"
Else
val = "Yes"
End If
ElseIf (i = 1) Then
If (value = "N") Then
val = "<b><font color='blue'>" & "No" & "</font></b>"
Else
val = "No"
End If
Else
If (value = "X") Then
val = "<b><font color='blue'>" & "None" & "</font></b>"
Else
val = "None"
End If
End If
str = str & val
str = str & "</span>"
Next
str = str & "</li></ul>"
'str ="<a href='file:///C:\inetpub\wwwroot\Filesanywhere\Images\Flags\in.gif'/>" & "<li><input type='radio' style='opacity: 0;' >Male '<input type='radio' style='opacity: 0;'>Female <input type='radio' style='opacity: 0;'>Child </li>"
Return str
End Function
I want to add the a image file in between text. As Textbox is supporting the <font>,<li> and other tags.
Can i use the <img> ot <a> tag to show the image.
Thanks
Piyush
None
0 Points
8 Posts
Re: How to add Image into TextBox in RDLC reports
Feb 25, 2013 08:41 AM|MuhammadOmar|LINK
1- Create Text Parameter
2- Add Image Control to the Report
3- Set the Image to be External external and set "Use this image" to be the parameter: [@ParameterName].
4- Finally Set the Parameter Value in Code behind before loading the report.
Setting image source in RDLC report dynamically
Member
6 Points
91 Posts
Re: How to add Image into TextBox in RDLC reports
Feb 25, 2013 02:37 PM|elvinPena|LINK
See this link please:
http://sqlserverpedia.com/blog/sql-server-bloggers/put-some-images-on-those-ssrs-reports/
None
0 Points
1 Post
Re: How to add Image into TextBox in RDLC reports
Sep 12, 2013 11:01 AM|cristian.sstein|LINK
Thank you, MuhammadOmar, it works perfectly.
I guess it's the best and cleaner way to add the image in the report.
Thank you again.