printing report about the resulting search only

flodi

Member
Joined
Jan 23, 2008
Messages
15
Location
Makkah Al Mukarramah, Makkah, Saudi Arabia, Saudi
Programming Experience
Beginner
hi to every one
am using vb.net2005 with db sql server2000
i want to make a report to my program that when i search about any name and get the correct answer i press print and it give me a report about my result only
how can i do that with criystal report ?
coz when try its print all the data in the table which i don't need!!!!
 
i guess this would be a help:

in the print button:


frmReport.CrystalReportViewer1.selectionFormula = "{Tablename.fieldname} = 'strResult' "
frmReport.show()


hope this help you
 
Back
Top