Click here to Skip to main content
14,733,437 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi there....
Please Help me
How to Build/Add Crystal Reports Parameter in vb.net Dynamically 
if Parameter is Not existing in Crystal Reports... Please Help me

What I have tried:

I am Adding Mannual Parameter in Crystal Report Rpt File
Posted
Updated 26-Nov-20 21:29pm

Don't think anyone at CodeProject is going to answer this because we have had it with all the problems caused by Crystal Reports.
Try an alternative like FastReport instead: open-source-reporting-tools[^]
Download the FastReport.Community.zip file, extract it, and run Designer.exe to get started.
   
intCounter = pReport.DataDefinition.ParameterFields.Count



'For Parameter fields
If intCounter > 0 And Trim(pParams) <> "" Then
strParamenters = pParams
strParValPair = strParamenters.Split("&")
For index = 0 To UBound(strParValPair)
If InStr(strParValPair(index), "=") > 0 Then
strVal = strParValPair(index).Split("=")
paraValue.Value = strVal(1)
currValue = pReport.DataDefinition.ParameterFields(strVal(0)).CurrentValues
currValue.Add(paraValue)
pReport.DataDefinition.ParameterFields(strVal(0)).ApplyCurrentValues(currValue)
End If
Next
End If
   
Comments
Member 12546239 28-Nov-20 6:30am
   
How i Pass Dynamic Name in Crystal Report Parameter that i wana Create?

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