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!

Crystal XI RDC code crashing on some machines

Status
Not open for further replies.

BernieBeattie

Programmer
Nov 29, 2002
22
0
0
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top