Crystal Report In VS2010 RRS feed

  • Question

  • haiii

    I am using visual studio 2010 for developing windows applications.Now i want to take some reports.I found that vs2010 is not giving crystal report as inbulit but giving as saperate.
    i have another crystal report 11 software in my system.i design a report using crystal report 11 and put in my project.now i have a .rpt extension file in my project.But my problem is i cannot create an object for the file.Also many of the crystal report dlls are not avilable.
    CrystalDecisions.CrystalReports.Engine;" line also giving eoorror.i want to do somthing like
    CrystalReportPurchaseReturnDetails  cryrpt = new CrystalReportPurchaseReturnDetails();   //---here create the object of .rpt file --//
    DataSet ds = new DataSet();
    SqlParameter[] param = new SqlParameter[2];
    param[0] =
    new SqlParameter("@fromdate", dtpFromDate.Text);
    param[0].SqlDbType =
    param[1] =
    new SqlParameter("@todate", dtpToDate.Value.AddDays(1));
    param[1].SqlDbType =
    ds = classObject.getDataSet(
    "sp_ReportPurchaseReturnDateWise_Select", param);
    this.crystalReportViewer1.ReportSource = cryrpt;

    Please Enyone help me

    • Moved by Kee Poppy Monday, October 31, 2011 9:56 AM (From:Visual Basic Language)
    Saturday, October 29, 2011 6:23 AM


All replies