Click here to Skip to main content
15,499,289 members
Home / Discussions / C#
   

C#

 
QuestionRe: can any body tell me the answer for this... Pin
harold aptroot18-Sep-09 2:46
Memberharold aptroot18-Sep-09 2:46 
AnswerRe: can any body tell me the answer for this... Pin
Luc Pattyn18-Sep-09 3:02
sitebuilderLuc Pattyn18-Sep-09 3:02 
QuestionReport Creating in C# ? Pin
Mohammad Dayyan18-Sep-09 1:54
MemberMohammad Dayyan18-Sep-09 1:54 
AnswerRe: Report Creating in C# ? Pin
Jacobb Michael18-Sep-09 2:10
MemberJacobb Michael18-Sep-09 2:10 
GeneralRe: Report Creating in C# ? Pin
Mohammad Dayyan18-Sep-09 2:35
MemberMohammad Dayyan18-Sep-09 2:35 
GeneralRe: Report Creating in C# ? Pin
Jacobb Michael18-Sep-09 2:58
MemberJacobb Michael18-Sep-09 2:58 
GeneralRe: Report Creating in C# ? Pin
Mohammad Dayyan18-Sep-09 3:12
MemberMohammad Dayyan18-Sep-09 3:12 
GeneralRe: Report Creating in C# ? Pin
Jacobb Michael18-Sep-09 18:22
MemberJacobb Michael18-Sep-09 18:22 
Hi,
It is just enough to google, you will get the answers any way see the bellow code

DataTable dtStudent = new DataTable();
            dtStudent = ConstructDataTable();
 Report.CrystalReport1 objStudent = new WindowsCrystal.Report.CrystalReport1();
                objStudent.SetDataSource(dtStudent);
                crystalReportViewer1.ReportSource = objStudent;


private DataTable ConstructDataTable()
        {
            DataTable dtTmp = new DataTable();
            dtTmp.Columns.Add("Id", typeof(int));
            dtTmp.Columns.Add("Name", typeof(string));
            dtTmp.Columns.Add("Age", typeof(int));
            dtTmp.Columns.Add("Score", typeof(int));

            dtTmp.Rows.Add(1, "Jacob", 24, 50);
            dtTmp.Rows.Add(2, "martin", 23, 90);
            dtTmp.Rows.Add(3, "Jeyakumar", 24, 70);
            dtTmp.Rows.Add(4, "Manic", 23, 59);
            dtTmp.Rows.Add(5, "Rosario", 27, 48);
           
            return dtTmp;
        }

GeneralRe: Report Creating in C# ? Pin
Mohammad Dayyan18-Sep-09 19:09
MemberMohammad Dayyan18-Sep-09 19:09 
GeneralRe: Report Creating in C# ? Pin
Pete O'Hanlon18-Sep-09 3:07
mvaPete O'Hanlon18-Sep-09 3:07 
GeneralRe: Report Creating in C# ? Pin
Mohammad Dayyan18-Sep-09 3:15
MemberMohammad Dayyan18-Sep-09 3:15 
AnswerRe: Report Creating in C# ? Pin
MiddleTommy18-Sep-09 4:39
MemberMiddleTommy18-Sep-09 4:39 
QuestionHow to scroll the scrollbar of treeview control automatically? Pin
kmb8918-Sep-09 1:31
Memberkmb8918-Sep-09 1:31 
AnswerRe: How to scroll the scrollbar of treeview control automatically? Pin
stancrm18-Sep-09 1:41
Memberstancrm18-Sep-09 1:41 
GeneralRe: How to scroll the scrollbar of treeview control automatically? Pin
kmb8918-Sep-09 1:48
Memberkmb8918-Sep-09 1:48 
AnswerRe: How to scroll the scrollbar of treeview control automatically? Pin
Tamer Oz18-Sep-09 1:44
MemberTamer Oz18-Sep-09 1:44 
QuestionUnable to set program icon Pin
yeah100018-Sep-09 0:57
Memberyeah100018-Sep-09 0:57 
AnswerRe: Unable to set program icon Pin
Christian Graus18-Sep-09 0:58
mveChristian Graus18-Sep-09 0:58 
GeneralRe: Unable to set program icon [modified] Pin
yeah100018-Sep-09 1:29
Memberyeah100018-Sep-09 1:29 
AnswerRe: Unable to set program icon Pin
PIEBALDconsult18-Sep-09 5:37
professionalPIEBALDconsult18-Sep-09 5:37 
GeneralRe: Unable to set program icon Pin
yeah100020-Sep-09 21:15
Memberyeah100020-Sep-09 21:15 
QuestionMultiThreading in c# Pin
nisharafic18-Sep-09 0:51
Membernisharafic18-Sep-09 0:51 
AnswerRe: MultiThreading in c# Pin
stancrm18-Sep-09 1:01
Memberstancrm18-Sep-09 1:01 
AnswerRe: MultiThreading in c# Pin
Jacobb Michael18-Sep-09 2:01
MemberJacobb Michael18-Sep-09 2:01 
QuestionThread Performance Pin
Member 368144318-Sep-09 0:47
MemberMember 368144318-Sep-09 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.