Assuming you can get the report to print fine without the parameters then all you need to do to assign these values is:
var
Crystal: TCrpe;
FromValue: String;
ParamNo: Integer;
procedure pAssignParams
Crystal.ParamFields[ParamNo].CurrentValue := FromValue;
Dates are a bit more ackward as you have to put them into the correct format:
Crystal.ParamFields[ParamNo].CurrentValue
:= copy(FromParam, 7, 4) + ',' +
copy(FromParam, 4, 2) + ',' +
copy(FromParam, 1,
2) + ' 00:00:00';
Robertio
Alias: Robbie Calder
Software Developer
urc@walkermartyn.co.uk