Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

Im using VS2005 crystal report. I have created a formula to print Item description and HSN Code. HSN Code consists of 8 digits, I want to display first 4 digits in bold and remaining 4 digits in regular style.


Any help appreciated.


Thank you.

What I have tried:

I tried Text interpretation- HTML text , Still im not getting
Posted
Updated 21-Jan-18 23:11pm
Comments
mahendra pal25 31-Aug-17 6:25am    
u can split the text in two using "mid" function and embed that in a text object

1 solution

FORMULA : MID({OINV.CardName},1,4)+'<b>'+MID({OINV.CardName},5)+'</b>'

then right click on the field
select Format Field
select Paragraph tab
Change Text Interpretation to "HTML Text"
 
Or Use a text field and drrag and drop fields (or formula fields) into it and you can change each item using teh usual formating tools
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900