Results 1 to 1 of 1

Thread: Crystal Reports in ASPX page

Threaded View

  1. #1

    Thread Starter
    Addicted Member cutamacious's Avatar
    Join Date
    May 2001
    Location
    INDIA >> Andhra Pradesh >> Hyderabad
    Posts
    185

    Crystal Reports in ASPX page

    Can anybody help on how to place a crystal report viewer control and reportdocument control on an aspx page and pass the report name dynamically.

    I've tried placing the Crystal Viewer control and report document control on the page and in page load I've used the following code



    Code:
            reportDocument1.Load(MapPath("CrystalReport1.rpt"))
            reportDocument1.SetDataSource(DsEx)
            CrystalReportViewer1.ReportSource = reportDocument1

    after filling the dataset(DsEx) with the Dataapdapter.

    However I'm getting a nullreference exception.

    Pls. Help


    Thnx in Advance
    Last edited by cutamacious; Sep 24th, 2004 at 04:50 AM.
    Cute Member

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width