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. General Programming
  3. Visual Basic
  4. "Push" method for crystal report

"Push" method for crystal report

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialcareer
2 Posts 2 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.
  • M Offline
    M Offline
    Mr Cully
    wrote on last edited by
    #1

    Im trying to code a crystal report which gets the information from a dataset, I have the C# code to bind the data but i need the vb code, or if anyone knows of a good example on the net that might help. Thanks, Colum 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; }

    D 1 Reply Last reply
    0
    • M Mr Cully

      Im trying to code a crystal report which gets the information from a dataset, I have the C# code to bind the data but i need the vb code, or if anyone knows of a good example on the net that might help. Thanks, Colum 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; }

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Well, I'd normally say just run it through one of the C#/VB.NET code translators on the 'Net, but you have an object in that code snippet that doesn't exist in the Page_Load function, 'table'. See this Yahoo search[^] for a list of translators. RageInTheMachine9532

      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