Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports with Formula fields through vb.net

Status
Not open for further replies.

bhappy007

Programmer
Apr 15, 2008
12
IN
Hai All,

Im creating 2 formula fields in my crystal report for displaying empname and salary like this,

abc 100
xyz 200
pqr 300
in code behind im passing values to crystal report like this,

vb.net code
j=0
for i=0 to noof emps
rptDocument.DataDefinition.FormulaFields(j).Text = ds.Tables(0).Rows(i).Item(i)+";"
j=j+1
next

It is printing only

pqr 300
pqr 300
pqr 300

ie, It is over writing every time and im getting only last record how to get all emp records at a time..?

For one record(one emp) its working fine, but for multiple records its not working....?


Thanks,
Aswath.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top