none
ReportViewer Solution Report RRS feed

  • Question

  • I have a solution that I have started to write.  It's a Windows C# form, as far as all of that is concerned it runs magnificently.  I have since added a new CrystalReport to the solution (OutOfWork(General).rpt).  My goal is to try and get that report to be displayed within a ReportViewer instance I have added to the Form.

     

    My ReportViewer instance's name is __reporting.  So I have been trying with no avail to get it to display a current report from within my solution.  Here is my code from my on load method of the Form.

     

    Code Snippet

    this.__reporting.RefreshReport();

    OutOfWorkGeneral report = new OutOfWorkGeneral();

    report.Load();

    __reporting.Reset();

    __reporting.LocalReport.ReportEmbeddedResource = "OutOfWork(General).rpt";

    this.__reporting.RefreshReport();

     

    Obviously I'd like to have the instance of the report I created with: report = new OutOfWorkGeneral().  But if that isn't possible I'll deal.  Any suggestions?  Thanks.

    Monday, April 9, 2007 4:17 PM