Contant Formate

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 :)


July 12th, 2015 11:08am

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

Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 2:01am

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

July 13th, 2015 5:59am

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.




  • Edited by n_nidhi Monday, July 13, 2015 8:00 AM
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 7:57am

Actually I want like this

I want Like this

  • Edited by n_nidhi Monday, July 13, 2015 8:16 AM
July 13th, 2015 8:16am

Actually I want like this

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

Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 9:01am

 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>"


July 13th, 2015 9:19am

Ok. And did you select placeholder properties and set HTML support?
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 9:37am

Yes 
July 13th, 2015 9:42am

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 

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 8:45am

Hello,

Thanks Shrek.

So is any other way you know to design a Certificates or Non Tabular Reports with prefect design/look.

Regards
Nidhi


July 20th, 2015 2:32am

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

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 2:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics