How to send Multiple values for one formula field in crystal reports through vb.net?

177 views
Skip to first unread message

aswa...@gmail.com

unread,
Apr 14, 2008, 10:12:42 AM4/14/08
to Rainforestnet Crystal Reports Exporter
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, It is over writing every time and im getting only last record how
to get all emp records at a time..?

Thanks,
Aswath.

ranganadh

unread,
May 11, 2008, 4:56:29 AM5/11/08
to Rainforestnet Crystal Reports Exporter
Dear Aswath,

Have a look on the bellow example that will be usfull for your
motive

http://www.codeproject.com/KB/cs/CreatingCrystalReports.aspx
http://69.10.233.10/KB/database/CrystalReportViewer.aspx

For your information general use of formula field is to filtering the
reports data as well as do summary operations.

You should create s report data reference fields and map these fields
with directly to the datasources.


Thanks and Regards
Ranganadh Kodali
Reply all
Reply to author
Forward
0 new messages