Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Accessing Report DataSource Post Reply Post New Topic
Author Message
ZafarYousafi
Newbie
Newbie
Avatar

Joined: 23 Jan 2008
Location: Pakistan
Online Status: Offline
Posts: 2
Quote ZafarYousafi Replybullet Topic: Accessing Report DataSource
    Posted: 23 Jan 2008 at 10:12pm
Hi  All,
I want to access dataset assigned to Report at RunTime Through Report Object. How can I Perform This Task. Please Help Me.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 23 Jan 2008 at 11:41pm
What do you want to do with it once you access it? I ask this because the normal way of doing this is that .NET populates the dataset with data and then passes it to Crystal Reports. .NET doesn't look at the report to see what dataset it has.
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
ZafarYousafi
Newbie
Newbie
Avatar

Joined: 23 Jan 2008
Location: Pakistan
Online Status: Offline
Posts: 2
Quote ZafarYousafi Replybullet Posted: 24 Jan 2008 at 10:57pm
I want to retrieve the dataset assigned to Report By Calling
SetDataSource method of ReportDocument. ReportDocument has only SetDataSource Method not GetDataSource. How Can I get Back that dataset again through report object
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 24 Jan 2008 at 11:15pm
I see. You can't get it back. You will have to save it to memory or do something so that your application remembers the query or the dataset object for future reference.
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
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.031 seconds.