Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: crystal rports using datasets Post Reply Post New Topic
Author Message
hmmmmmm
Newbie
Newbie


Joined: 11 Dec 2010
Online Status: Offline
Posts: 7
Quote hmmmmmm Replybullet Topic: crystal rports using datasets
     Posted: 16 Dec 2010 at 1:59am

I had created a dataset (Dataset1) and drag database table (tbl_customer) through solution explorer on dataset.

Then i create a report and add same table(tbl_customer) using ADO.NET dataset option. Drag fields on reports.

Reportviewercontrol is added on webform.

Webform is created. On page load event. here i put some code. I am totally new to this. So please help me to figure this out.

protected void Page_Load(object sender, EventArgs e) {

    string SQL = "select * from tbl_customer";

SqlConnection conn = new SqlConnection();
conn.ConnectionString = "MyConnString";



SqlDataAdapter da = new SqlDataAdapter(SQL,conn);

DataSet1 ds = new DataSet1();

da.Fill(ds,"tbl_customer");
}

Please tell me now, how to bind report with this.

thankyou

IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum