Solved

Remove Datasource from Crystal Report

Posted on 2008-09-30
2
2,115 Views
Last Modified: 2012-06-27
I have a Crystal Report (Visual Studio 2005 standard) and change the data source at run time:
        crReport.SetDataSource(my DataSet)
        crReport.Refresh()
This has the identical structure as the dataset used at design time.  
The problem is that CR wants to open both the original and new datasets at run time.
I can't see any way to remove the design time data.  It does not show in the Visual Studio Data Sources panel, only in the Crystal Design database/database expert.

Thanks



0
Comment
Question by:John4343
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 22610964
Check this article on feeding your report from a data set
http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx

Also here is a document to show you how to change the data source.  I think it is on page 131.
http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf

If you want to change it permanently you can do it in design using
DATABASE --> SET DATASOURCE LOCATION

mlmcc
0
 

Author Comment

by:John4343
ID: 22641067
Thanks.   It's actually page 138 if anyoune else is searching.  
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question