Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Remove Datasource from Crystal Report

Posted on 2008-09-30
2
Medium Priority
?
2,276 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 101

Accepted Solution

by:
mlmcc earned 1000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

886 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