Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Couldnt bind dataset to a crystal report Post Reply Post New Topic
Author Message
Neena
Newbie
Newbie
Avatar

Joined: 13 Feb 2008
Location: India
Online Status: Offline
Posts: 7
Quote Neena Replybullet Topic: Couldnt bind dataset to a crystal report
    Posted: 21 Feb 2008 at 1:29am
hi,
    I have a Crystal Report which will list all the students from a table in database (Sql Server 2000). Actually i want to display only of the selected class. i have created a query to return all the rows of the specified condition and this query returns a dataset. My problem is that i cannot bind values of the dataset to the report. The crystal report displays all the values even after binding the dataset to the crystal report. Can anyone help me. I had given AutoDataBind="true" in crystal report viewer.
 
thank you
Neena
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 21 Feb 2008 at 6:43pm
Make sure you have the option to save the data with the report turned off.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Neena
Newbie
Newbie
Avatar

Joined: 13 Feb 2008
Location: India
Online Status: Offline
Posts: 7
Quote Neena Replybullet Posted: 21 Feb 2008 at 7:27pm

Can u make clear wht to do. Actually i didnt understand ur reply.

Thank you
Neena
NEENA
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 22 Feb 2008 at 1:02am
The report has the option to save its data with the report. When you open the report it will show the old data and not refresh it. Go to the menu options Crystal Reports > Design > Options > Reporting tab. Then check the option 'Discard Saved Data When Loading Reports'
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Neena
Newbie
Newbie
Avatar

Joined: 13 Feb 2008
Location: India
Online Status: Offline
Posts: 7
Quote Neena Replybullet Posted: 27 Feb 2008 at 8:39pm
Thank u for ur reply. As i'm using CR in VS.Net 2005, I dont find an option  menu in Crystal report -> Design. Anyway i got the answer by putting 2 detail section.
 
Thank U
Neena
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.018 seconds.