List Info

Thread: C-Sharp (C#) Group: Crystal Report parameter dialog box




C-Sharp (C#) Group: Crystal Report parameter dialog box
user name
2006-01-16 01:00:17
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.

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )