How to use crystal report 4 in WPF with vs2010 RRS feed

  • 问题

  • 1. VS-2010 Ultimate installed successfully

    2. Crystal Reports installed successfully (cr4vs2010.exe download from

    3. Create Crystal Reports WPF Application

    4. Create a Crystal Report named CRTest.

    5. Code:

                DataSet DS = new DataSet();

                DataTable DT = new DataTable();

                DataRow dr = DT.NewRow();
                dr[0] = "0006";


               //CRTest is a crystal report.

                CRTest crtest= new CRTest ();

                crtest.SetDataSource(DS.Tables[0]); //Error

    6. An Error is that "Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies."

    7. Copy the file :crdb_adoplus.dll" to the folder.

    8 An Error is that "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.";

    2010年6月17日 8:34


  • I have the same problem.But I got another problem:I can't instantialte the crystal report class! That means I got an error when the programn runs to

    CRTest crtest=new CRTest();

    VS show that my crystal report is not installed correctly,but when I unistall it and try again,the error still exit.

    What's more, My data sourse is a list<> from Orecal data base. I want to know how to use the Ilist<> data to fill dataset,so that can be used in the crystal reports.

    2010年6月23日 9:47