Hello,
Creating a dynamic crystal report, presently API's
supplied by seagate do not allow you to do that.
We have to create a .rpt file (physical file) with
crystal reports and we can use that .rpt file in
vb6.0 to view it.
Here we can change the input param values to get the
data from the database. so the data of the report
changes depending upon the params passed.
For passing the date param to the report,
first,
check the position of that param in your
rpt file
second,
Form1.CrystalReport1.StoredProcParam(X) = CStr(Format(Date, "mm/dd/yyyy"))
WHERE X is the position in the .rpt file
(position, i mean it a first param or second param)
if it is first that X = 0 (like an array).
Hope this helps
With Regards,
Raghavendra Mudugal
|