Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Crystal report

Crystal report

Scheduled Pinned Locked Moved ASP.NET
helpcareer
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SysJey
    wrote on last edited by
    #1

    I tried to use push model to create crystal reports in our project. For that i got sample code from our codeproject forum. ----------------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { CrystalReport1 report=new CrystalReport1(); CrystalReportViewer1.Visible=true; DataSet ds=new DataSet("Account");//give same name as on //dataset1 table header DataTable table=new DataTable("Account");//give same name as on //dataset1 table header table.Columns.Add("Fname",typeof(System.String)); table.Columns.Add("Lname",typeof(System.String)); table.Columns.Add("Salary",typeof(System.String)); DataRow row=table.NewRow(); row["Fname"]="Mathew"; row["Lname"]="Hayden"; row["Salary"]="5000$"; // add to table table.Rows.Add(row); ds.Tables.Add(table); // set report's dataset report.SetDataSource(ds); // set report source CrystalReportViewer1.ReportSource =report ----------------------------------------------------- But in my project i cant create object for the crytal report like this "CrystalReport1 report=new CrystalReport1();". i am struggling with this 2 days. Could you help me.

    Jey

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups