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. Reporting

Reporting

Scheduled Pinned Locked Moved C#
regextutorialquestion
3 Posts 3 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
    mark_w_
    wrote on last edited by
    #1

    Say i have the following

    public class CollageClass
    {
    public List<Student> Students{ get; set; }

        public string Name { get; set; }
        public string RoomNumber{ get; set; }
    

    }

    public class Student
    {
    public string Name { get; set; }
    public int Age{ get; set; }
    public int BestGrade{ get; set; }
    }

    nice and simple, now i want to create a report, to display the CollageClass info at the top of the page and the students info under. How is the best/easyest way to do this? i was going to make a crystal report, but i cant just give it my instance of CollageClass. If i used crystal, i was thinking of making a strongly typed dataset to match the contents of the class, populate that and then bind the report to it, is this the correct way to do this? (just seems like a lot of work as my class is much bigger than the above example) i dont normally make many reports, so this is kinda a bit new to me Regards Mark

    E N 2 Replies Last reply
    0
    • M mark_w_

      Say i have the following

      public class CollageClass
      {
      public List<Student> Students{ get; set; }

          public string Name { get; set; }
          public string RoomNumber{ get; set; }
      

      }

      public class Student
      {
      public string Name { get; set; }
      public int Age{ get; set; }
      public int BestGrade{ get; set; }
      }

      nice and simple, now i want to create a report, to display the CollageClass info at the top of the page and the students info under. How is the best/easyest way to do this? i was going to make a crystal report, but i cant just give it my instance of CollageClass. If i used crystal, i was thinking of making a strongly typed dataset to match the contents of the class, populate that and then bind the report to it, is this the correct way to do this? (just seems like a lot of work as my class is much bigger than the above example) i dont normally make many reports, so this is kinda a bit new to me Regards Mark

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      That is the way I do it. It may sound like a lot of work but crystal is quirky unless you do things there way.

      Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
      Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
      Most of this sig is for Google, not ego.

      1 Reply Last reply
      0
      • M mark_w_

        Say i have the following

        public class CollageClass
        {
        public List<Student> Students{ get; set; }

            public string Name { get; set; }
            public string RoomNumber{ get; set; }
        

        }

        public class Student
        {
        public string Name { get; set; }
        public int Age{ get; set; }
        public int BestGrade{ get; set; }
        }

        nice and simple, now i want to create a report, to display the CollageClass info at the top of the page and the students info under. How is the best/easyest way to do this? i was going to make a crystal report, but i cant just give it my instance of CollageClass. If i used crystal, i was thinking of making a strongly typed dataset to match the contents of the class, populate that and then bind the report to it, is this the correct way to do this? (just seems like a lot of work as my class is much bigger than the above example) i dont normally make many reports, so this is kinda a bit new to me Regards Mark

        N Offline
        N Offline
        nelsonpaixao
        wrote on last edited by
        #3

        Hi mark, i don´t know if that works for you, my coding different

        static string _image_path;
        public static string Image_Path
        {
        get { return _image_path; }
        set { _image_path = value; }
        }

        but, were is the database? :doh:

        nelsonpaixao@yahoo.com.br trying to help & get help

        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