Crystal Report parameter dialog box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mounilk

    #1

    Crystal Report parameter dialog box

    I have a CrystalReportVi ewer(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.SetDat aSource(dtsRepo rtData);
    crv.ReportSourc e = 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.

Working...