Click here to Skip to main content
15,885,760 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a crystal report that I designed. I have a heading that I put together to make one field. I wanted to add some text to this field. I have tested the code I have here but it doesn't display. Is my code right or is there another way of doing this? Is there a way to add a text object to this formula?

C#
Trim({TableCOCINST.LongName})&","&" "&trim({TableCOCINST.CITY})&","&" "&trim({TableCOCINST.STATE})&","&" "& ToText("Enrollment Information Profile")
Posted
Updated 14-Nov-14 2:16am
v2

1 solution

="Text here" +First(Fields!SalaryMonth.Value, "DataSet1").ToString()+" / "+First(Fields!SalaryYear.Value, "DataSet1").ToString()
 
Share this answer
 
Comments
Computer Wiz99 14-Nov-14 5:47am    
Where did you get this code from? Do I put the text part in the front of the formula?
Computer Wiz99 14-Nov-14 8:12am    
I am not using DataSets. The formula is what I am using that has no dataset in it or in the code behind.

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