Click here to Skip to main content
15,903,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project i want to use crystal reports .but in crystal reports how to pass parameters(ie when user enters any no in textbox it

should display all deatails of that employe , and in dropdown list also the same )
Posted

Hi,

But you didn't mention is it formula field or parameter field, but i give both snippets

Formula field
string strFormula ="";

strFormula = "{tblTable.fldField}='" + txtParam.text + "'";

report.DataDefinition.RecordSelectionFormula = strFormula;

Parameter field
string strParameter ="";

strParameter = txtCompanyName.Text;

report.SetParameterValue("Company", strParameter);


please let me know if you solved your issue.

Regards,
thatraja
 
Share this answer
 
Comments
suryanalini 2-May-11 0:24am    
222
thatraja 2-May-11 1:39am    
222? huh? Don't know what you mean dude? :doh:
please give example of taking parameter from dropdown in the crystal report ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900