Print Page | Close Window

Populating my report with data from an array

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1859
Printed Date: 05 May 2024 at 7:09am


Topic: Populating my report with data from an array
Posted By: orson4music
Subject: Populating my report with data from an array
Date Posted: 10 Dec 2007 at 7:11am
Can someone help me.

I have a storeprocedure that resides in the database.
I also have a list variable in a value object like:

    public class ReportsInfo
    {
        private string emp_name;
        private string position_last_held;
        private string grade_level_id;
        private string category;
        private string service_num;
        private string outstanding_pension31;
...

        public string _emp_name { get { return emp_name; } set { emp_name = value; } }
        public string _positionlastheld { get { return position_last_held; } set { position_last_held = value; } }
        public string _grade_level { get { return grade_level_id; } set { grade_level_id = value; } }
        public string _category { get { return category; } set { category = value; } }
        public string _service_num { get { return service_num; } set { service_num = value; } }
        public string _outstanding_pension31 { get { return outstanding_pension31; } set { outstanding_pension31 = value; } }...
    }
}


I linked my report to this object, and i want when i get my dataset from my stored procedure it should poplulate my crystal report.




Print Page | Close Window