I have a CrystalReportViewer(crv) on my form. I also have a
dataset
(dtsReportData) populated with the required data and i have
a
ReportDocument (rdReport) object. The data source for the
crystal
report (CR 11) is a stored procedure.
This is what i am doing:-
rdReport.Load("ReportLocation"); //ReportLocation
is the file path.
rdReport.SetDataSource(dtsReportData);
crv.ReportSource = rdReport;
When the Crystal Report Viewer loads up, it brings up a
dialog box
asking to enter the various parameters. I do not have
different forms
(to accept the report parameters from the user) for
different reports.
I have only 1 form which is dynamically generated with the
required
controls (labels/textboxes/datetimepickers etc ) depending
on which
report the user selects in the application.
Can any one shed some light on why this is happening and how
can i get
around it? If anyone has had a similar problem and has
managed to
solved it, i would love to hear how you did it.
TIA,
Mounil.
|