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


    OutOfWorkGeneral report = new OutOfWorkGeneral();



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



    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