BernieBeattie
Programmer
We have code which manipulates the report object before running reports. The code works on machines with Crystal Developer installed but not ones with just the merge module installed. This is the problem code (VFP):
If loRepObj.Field.Kind=7 &&7=RunningTotalField
IF TYPE('loRepObj.Field.summarizedfield.Text')<>'U'
If Upper(Alltrim(filename)+"."+Alltrim(fieldname))$Upper(loRepObj.Field.summarizedfield.Text) &&total of a formula with field in formula text
loRepObj.suppress=.T. &&hide it
loop
Endif
ELSE
If Upper(Alltrim(filename)+"."+Alltrim(fieldname))$Upper(loRepObj.Field.summarizedfield.Name) &&total of a field
loRepObj.suppress=.T. &&hide it
Loop
ENDIF
ENDIF
Endif
The line testing for loRepObj.Field.summarizedfield.Name crashes with error 1943:Member SUMMARIZEDFIELD does not evaluate to an object.
I feel it has to be a dll problem, either missing or wrong version but can't quite track it down.
Any help would be appreciated.
Bernie
If loRepObj.Field.Kind=7 &&7=RunningTotalField
IF TYPE('loRepObj.Field.summarizedfield.Text')<>'U'
If Upper(Alltrim(filename)+"."+Alltrim(fieldname))$Upper(loRepObj.Field.summarizedfield.Text) &&total of a formula with field in formula text
loRepObj.suppress=.T. &&hide it
loop
Endif
ELSE
If Upper(Alltrim(filename)+"."+Alltrim(fieldname))$Upper(loRepObj.Field.summarizedfield.Name) &&total of a field
loRepObj.suppress=.T. &&hide it
Loop
ENDIF
ENDIF
Endif
The line testing for loRepObj.Field.summarizedfield.Name crashes with error 1943:Member SUMMARIZEDFIELD does not evaluate to an object.
I feel it has to be a dll problem, either missing or wrong version but can't quite track it down.
Any help would be appreciated.
Bernie