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. C#
  4. crystal report and list<>

crystal report and list<>

Scheduled Pinned Locked Moved C#
databasehelptutorialquestion
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.
  • R Offline
    R Offline
    reza assar
    wrote on last edited by
    #1

    hi all i have an win application form suppose to show some reports in CrystalReportView i have no idea how to assign a list<> of class to MyCrystalReport

           public Form1()
    	{
    		InitializeComponent();
    		StdList = new List<studants>();
    		StdList.Add(new studants("1", "1", 1));
    		StdList.Add(new studants("2", "2", 2));
    		StdList.Add(new studants("3", "3", 3));
    		StdList.Add(new studants("4", "4", 4));
    		StdList.Add(new studants("5", "5", 5));
    	}
    
    	private void Form1\_Load(object sender, EventArgs e)
    	{
    		CrystalReport1 cr = new CrystalReport1();
    		cr.SetDataSource(StdList);
    		crystalReportViewer1.ReportSource = cr;
    	}
    

    but i have not assigned any table with CrystalReport1 it`s all because of i have not any dataset or database or ... and i do not know how to assign add or assign a list<> of objects to my crytalReport Project (CrystalReport1) how can i assign it and work on it i should definitely use list<> please help me!!!!!!!!!!

    M 1 Reply Last reply
    0
    • R reza assar

      hi all i have an win application form suppose to show some reports in CrystalReportView i have no idea how to assign a list<> of class to MyCrystalReport

             public Form1()
      	{
      		InitializeComponent();
      		StdList = new List<studants>();
      		StdList.Add(new studants("1", "1", 1));
      		StdList.Add(new studants("2", "2", 2));
      		StdList.Add(new studants("3", "3", 3));
      		StdList.Add(new studants("4", "4", 4));
      		StdList.Add(new studants("5", "5", 5));
      	}
      
      	private void Form1\_Load(object sender, EventArgs e)
      	{
      		CrystalReport1 cr = new CrystalReport1();
      		cr.SetDataSource(StdList);
      		crystalReportViewer1.ReportSource = cr;
      	}
      

      but i have not assigned any table with CrystalReport1 it`s all because of i have not any dataset or database or ... and i do not know how to assign add or assign a list<> of objects to my crytalReport Project (CrystalReport1) how can i assign it and work on it i should definitely use list<> please help me!!!!!!!!!!

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Does CR support List<> as a datasource? I have not used that POS in a few years but I doubt it has moved that fast. I suggest you do some research on the Business Object web site.

      Never underestimate the power of human stupidity RAH

      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