I'm trying to call a Parameter in Crystal report from htm script. When I run the program the error message is(the):
Line: 32
Char: 5
Error: Error in the application.
Code: 0
URL: file:///C:/ProgramData/JobBOSS/JobBOSS%20Server/Reporting/User-Defined/Job%20BOM_Rpt.htm
This is the code:
' Set Report Formulas
For Each oFormula in oRpt.FormulaFields
If oFormula.FormulaFieldName = "GetJob" Then oFormula.Text = CStr("'" & JobCode & "'")
Next
oRpt.ParameterFields.GetItemByName("GetJob").AddCurrentValue(JobCode) 'this is line 32 for the error above.
Line: 32
Char: 5
Error: Error in the application.
Code: 0
URL: file:///C:/ProgramData/JobBOSS/JobBOSS%20Server/Reporting/User-Defined/Job%20BOM_Rpt.htm
This is the code:
' Set Report Formulas
For Each oFormula in oRpt.FormulaFields
If oFormula.FormulaFieldName = "GetJob" Then oFormula.Text = CStr("'" & JobCode & "'")
Next
oRpt.ParameterFields.GetItemByName("GetJob").AddCurrentValue(JobCode) 'this is line 32 for the error above.