how to display a variable in a crystal report

rocks_lp

Member
Joined
Dec 16, 2008
Messages
15
Programming Experience
Beginner
in my report i have a field to display the persons name who generated the report. i have global variable and i take the persons name into that when he log in to the application. how can i display that in my report.
 
I think I know what you want to do. It is better if you do with this from Form. When you generated the report some text from windows from will show in your report.

Like if you have Text field Object named "Text1" in crytalreport.
VB.NET:
Dim N As New ReportObject
Dim FObj As CrystalDecisions.CrystalReports.Engine.TextObject = N.ReportDefinition.ReportObjects("Text1")
FObj.Text = "Client Name"
N.SetDatasource(Dataset)
crystalreportviewer.reportsource=N
 
Last edited by a moderator:
Back
Top