bhappy 0 Newbie Poster

Hai All,

Im creating 2 formula fields in my crystal reports 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
ie, last record how to get all emp records at a time..?

Thanks,
Aswath.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.