Click here to Skip to main content
15,902,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am passing parameter As "@Name" to crystal report in vb.net code...But when report opens it prompts me to enter discrete parameter value...Below is the line of code to pass parameter.
VB
Report.SetParameterValue("@Name", CmpName)

Please help me to solve this.
Posted

crReportDocument.DataDefinition.FormulaFields.Item("Dataini").Text = "'" & DTpini.Value.Date & "'"
            crReportDocument.DataDefinition.FormulaFields.Item("Datafim").Text = "'" & Dtpfim.Value.Date & "'"
            crReportDocument.DataDefinition.FormulaFields.Item("Machine").Text = "'" & Trim(TXT_MACHINE.Text) & "'"
 
Share this answer
 
v2
What is the exact name of the Parameter when you are designing it? Does it really have the @ in front of it? Because I don't think you need it.

If that's not it, could you include a bit more code. It would be nice to see if you are doing anything else before displaying the report, and how you are displaying the report, etc.
 
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