Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when trying to call a Parameter in Crystal reports from HTM

Status
Not open for further replies.

rwn

Technical User
Dec 14, 2002
420
US
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.

 
Is the name of the parameter GetJob or @GetJob?
Also I don't know why you are replacing the formula content. Use the GetJob parameter for the formula instead of a constant

Viewer and Scheduler for Crystal reports and SSRS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top