I am using <span> in textbox expression but its not working , I write like this
<span style=""text-align:left;letter-spacing:2px;line-height:30px;word-spacing:5px;""></span>
please suggest me if i am wrong , and correct me .
Thanks in Advance :)
Technology Tips and News
I am using <span> in textbox expression but its not working , I write like this
<span style=""text-align:left;letter-spacing:2px;line-height:30px;word-spacing:5px;""></span>
please suggest me if i am wrong , and correct me .
Thanks in Advance :)
Hi,
According to your description, you want to add HTML format to the text box expression, right?
In Reporting Services, we can use HTML label (like <DIV>, <SPAN>) to format text in a text box. In your scenario, when adding HTML label to text box expression, you can modify the Markup type to HTML-Interpret HTML tags as styles on Placeholder Properties window. For more detail information, please refer to this blog: Add HTML Formatting to your SQL Server Reporting Services (SSRS) Reports. We have tested this scenario in our local environment.
Expression: ="<span style='color:red;font-size:20pt'>"+Fields!SaleMan.Value+"</span>"
If you have any question, please feel free to ask.
Regards,
Shrek Li
Hi,
According to your description, you want to add HTML format to the text box expression, right?
In Reporting Services, we can use HTML label (like <DIV>, <SPAN>) to format text in a text box. In your scenario, when adding HTML label to text box expression, you can modify the Markup type to HTML-Interpret HTML tags as styles on Placeholder Properties window. For more detail information, please refer to this blog: Add HTML Formatting to your SQL Server Reporting Services (SSRS) Reports. We have tested this scenario in our local environment.
Expression: ="<span style='color:red;font-size:20pt'>"+Fields!SaleMan.Value+"</span>"
If you have any question, please feel free to ask.
Regards,
Shrek Li
Hello Shrek ,
First of all thanks for reply , Actually i do that , but my problem is for formatting the textbox content, But unable to apply.
I want Like this
Can you show the expression you used?
If you set Markup properties to HTML as suggested and use <SPAN> etc inside expression it should work fine
Following is my Expression.
=space(20)+ "<span style=""text-align:left;letter-spacing:2px;line-height:30px;word-spacing:5px;"">PURSUING STUDIES IN <b>SEMESTER</b> , Batch of duration year course Coursee .This Certificate is being issued to him for the purpose of education Loan</span>"
Hi,
Sorry for delay.
Based on my tested, your html code can work properly in IE browser. But in SSRS, it only support simple tag attribute (like color or font-size).
Regards,
Shrek Li
Hello,
Thanks Shrek.
So is any other way you know to design a Certificates or Non Tabular Reports with prefect design/look.
Regards
Nidhi
Hi,
SSRS can only render data from database and simple processing. It is not good at dealing with text style. So you can use 3rd-part application (like CertificateMagic) to achieve your goal.
Regards,
Shrek Li