locked
Passing Parameter or value to a subreport RRS feed

  • Question

  • I have a crystal report calle rptMyReport.rpt , with rptHeader as sub report and typed dataset. Create in subreport a Parameter Fields called "DeliveryV1" IFieldObject. The Name in the property box say "DeliveryV1" but under the dropdown it says Delivery_V. Tried both but didn't work. Thanks
    dim myCr as rptMyReport (name of my crystal reports, includes rptHeader)
    dim rptDoc as ReportDocument
    dim ds as new DataSet

    connect to sql stored proc.. here returns DataSet

    ds = .... call to function

    ............

    rptDoc = myCr.OpenSubReport("rptHeader")
    rptDoc.SetParameterValue("DeliveryV1", "123456")
    rptDoc.database.tables(0).setdatasource(another function returns ds)
    myCr.setdatasource(ds.tables("xx"))

    Tuesday, May 18, 2010 2:52 PM

Answers

  • figured this out also.
    • Marked as answer by jgnguyen Tuesday, May 18, 2010 3:33 PM
    Tuesday, May 18, 2010 3:33 PM