Click here to Skip to main content
16,017,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developed a application in vb.net.
And I need to display some value in crystal report.
Value is get by code.
dim sr as string.
' and I assign a value to this variable
sr="Admin"

How to display sr value to any control in Crystal report.
Posted

1 solution

Create one formula field.

For Example @UserDefineValue

Now assign formula field to any control which you want to display value.

At run time you can use following line in your code.

VB
dim sr as string.
' and I assign a value to this variable
sr="Admin"


dim objReport as New Report1
objReport.DataDefinition.FormulaFields("@UserDefineValue").Text = sr

That's it.
 
Share this answer
 
Comments
vipinsethumadhavan 14-Jun-10 3:22am    
Reason for my vote of 1
I got solution

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