Using Crystal Reports 10 with C# EE 2005

Hi!

I've created report file for crystal report, and have placed report viewer on the form. Can anybody tell me how can I do the following:

1) Displaying the report in the viewer on the form.

2) To be able to change the data source programmatically before displaying it in viewer.

Please respond with sample codes or specify related links.

Thanks in advance.

Sohail.




Answer this question

Using Crystal Reports 10 with C# EE 2005

  • Lale Divringi - MSFT

    Thanks mewdied, it seems to be the case. I have full version of CR 10 and express version of VS 2005. Can anybody who is cent percent sure about not being able to use CR 10 with VS Express 2005, confirm this .

    Thanks.



  • Praveen.P.L

    Are you talking about a full version of CR 10, ie CR 10 Developer (10.0) or are you talking bundled version 10 (10.2), because I don't think that Express Edition comes with the bundled version, and CR 10 Developer does not work with VS 2005, only XIR2 does. In fact I'm not positive if any versions of CR work with the express editions
  • wojciu

    Hi!

    Thanks for snippet and link, this works great with DotNet 1.1 but I'm using DotNet and C# Express Edition. In C# EE neither I can specify ReportSource nor I can create ReportDocument. Any help will be appreciated.

    Thanks.



  • Nils Andreas Svee

    1) to display there are two main ways, depends on if you are embedding the report. But because of your second question I would suggest the following:

    place the crystalReportViewer on the form
    then add the following code:
    ReportDocument myReport = new ReportDocument();
    myReport.Load(reportPath);
    CrystalReportViewer1.ReportSource = myReport;

    2) Check out the following link
    http://support.businessobjects.com/library/kbase/articles/c2011464.asp


  • Using Crystal Reports 10 with C# EE 2005