ByzantianX
Programmer
- Dec 18, 2000
- 103
I've got a SQL Server database, report in Crystal Reports, based on a stored procedure and front-end application in Delphi 7. I use Crystal Report Control (5.2). The problem is that I can't pass the parameters values to the report. Here's the piece of code:
cr:=tcrystalreport.Create(frmMain.cr2);
cr.ReportFileName:=strReportLocation;
cr.StoredProcParam[0]:=strDate1;
cr.StoredProcParam[1]:=strDate2;
cr.PrintReport;
I always get the message:'Invalid number of parameters', although I checked the function RetrieveStoredProcParams
and I'm getting respond that there's 2 stored procedure parameters. Could anyone help, please?
cr:=tcrystalreport.Create(frmMain.cr2);
cr.ReportFileName:=strReportLocation;
cr.StoredProcParam[0]:=strDate1;
cr.StoredProcParam[1]:=strDate2;
cr.PrintReport;
I always get the message:'Invalid number of parameters', although I checked the function RetrieveStoredProcParams
and I'm getting respond that there's 2 stored procedure parameters. Could anyone help, please?