Solved

Remove Datasource from Crystal Report

Posted on 2008-09-30
2
2,046 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
Comment Utility
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
Comment Utility
Thanks.   It's actually page 138 if anyoune else is searching.  
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now