generate a report using Crystal report?

simplyeshu

New member
Joined
Jul 12, 2011
Messages
1
Programming Experience
Beginner
Hello Frens,

I am trying to build a windows application with C# code. I have a button which should generate a report using Crystal report. Can anyone please help me with the code to get the desired output.

Current format:


MyRef CCode AmtPay Bname Binfo Rcode Explanation TType
14001 RUP 95.2 ABC 1234 A257 Display prob Payment
B258 Sound prob
A255 Display prob

Desired format should come in excel :

MyRef CCode AmtPay Bname Binfo Rcode Explanation TType
14001 RUP 95.2 ABC 1234 A257 Display prob Payment
14001 RUP 95.2 ABC 1234 B258 Sound prob Payment
14001 RUP 95.2 ABC 1234 A255 Display prob Payment



Thanks in advance.
 
Follow these step which are quite simple. Fetch data from Sql server populate into datatable.
Add report viewer to form set and set its source to your crystal report and then crystal report's source to the datatable
You can then export that report to excel.
 
Back
Top Bottom