Print Page | Close Window

Accessing Report DataSource

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=2123
Printed Date: 19 Apr 2024 at 5:10am


Topic: Accessing Report DataSource
Posted By: ZafarYousafi
Subject: Accessing Report DataSource
Date 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.



Replies:
Posted By: BrianBischof
Date 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>


Posted By: ZafarYousafi
Date 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


Posted By: BrianBischof
Date 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>



Print Page | Close Window