PC Review


Reply
Thread Tools Rate Thread

Crystal and DataSet

 
 
Paulo
Guest
Posts: n/a
 
      13th Mar 2008
Hi,

MySqlDataReader reader = null;
MySqlCommand cmd = new MySqlCommand("Select from something", conn);
reader = cmd.ExecuteReader();

How can I put: report.SetDataSource(ds);

the Reader instead DataSert ?

Is possible converting Reader to DS ?

VS 2005 - asp.net C# 2.0

Thanks!


 
Reply With Quote
 
 
 
 
Manish
Guest
Posts: n/a
 
      14th Mar 2008
Hi Paulo,

I think you can create a dataset like this if you need dataset as a
datasource to your report.

Dim cmd As New SqlCommand("select * from abc")
Dim con As SqlConnection = New SqlConnection("connectionstring")
Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
Dim ds As New DataSet
da.Fill(ds)

Regards,
Manish
www.ComponentOne.com


"Paulo" wrote:

> Hi,
>
> MySqlDataReader reader = null;
> MySqlCommand cmd = new MySqlCommand("Select from something", conn);
> reader = cmd.ExecuteReader();
>
> How can I put: report.SetDataSource(ds);
>
> the Reader instead DataSert ?
>
> Is possible converting Reader to DS ?
>
> VS 2005 - asp.net C# 2.0
>
> Thanks!
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports Dataset! =?Utf-8?B?QnJhc2hlbg==?= Microsoft ADO .NET 1 17th Apr 2006 01:46 PM
Crystal Report from Dataset Bernie Hunt Microsoft VB .NET 0 23rd Feb 2006 04:54 PM
Dataset for crystal report Hemang Shah Microsoft ADO .NET 13 3rd Mar 2005 01:44 PM
Dataset in Crystal Report =?Utf-8?B?Tm9ub3kgb2YgUGhpbGlwcGluZXM=?= Microsoft ADO .NET 1 10th Nov 2004 02:35 PM
How to set ADO.net dataset to Crystal SubReport =?Utf-8?B?U3VyZXNo?= Microsoft ADO .NET 0 11th Mar 2004 05:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 AM.