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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi 6 and Crystal Reports 8.5

Status
Not open for further replies.

ndolson

Programmer
May 3, 2001
9
US
I am working on an application in Delphi 6 to display a crystal report. The report has multiple ranges in the parameters. I can't get this to work correctly, can anyone help me?

 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top