I am using Crystal Enterprise V9. I have a report that needs to have
multiple datasets as the datasource(s) on a single subreport (some
common lookup data I need to join to is stored in a seperate dataset).
The report is working fine with a single dataset as a datasource, but I
cannot seem to find any examples of multiple datasets as a datasource.
Is this possible?
ReportDocument.SetDatasource() seems to only take a single dataset, and
I cannot figure out how to add more at runtime.
Thanks,
Lee 3 16739
Lee,
I don't think it's possible to report off two different datasets. In first
place, you design it against only one XSD schema, right? And then is the
fact that SetDataSource() takes only one parameter.
¿Can't you copy the needed tables from the 2nd dataset to the first?
Regards - Octavio
<le**********@hotmail.com> escribió en el mensaje
news:11*********************@o13g2000cwo.googlegro ups.com... I am using Crystal Enterprise V9. I have a report that needs to have multiple datasets as the datasource(s) on a single subreport (some common lookup data I need to join to is stored in a seperate dataset).
The report is working fine with a single dataset as a datasource, but I cannot seem to find any examples of multiple datasets as a datasource. Is this possible?
ReportDocument.SetDatasource() seems to only take a single dataset, and I cannot figure out how to add more at runtime.
Thanks, Lee
Octavio-
I guess that's where I was getting confused. I have multiple
typed-datasets in my project, and crystal was more than happy to let me
use multiple typed-datasets at design time, but a run-time when it came
time to actually give the report datasources for those multiple
datasets, I couldn't figure out how to do it.
I think what I'll end up doing is making one huge dataset that combines
the schemas of all my seperate datasets and use that "super" dataset as
the datasource for my report. I was hoping to avoid this, however,
because it is extra code, extra datasets, and causes me to have data in
memory twice while creating the report...
Thanks for your help,
Lee
Lee, ... and crystal was more than happy to let me use multiple typed-datasets at design time...
Now I see what you mean! Indeed, Crystal happily allows you to join data
from different data sets...
I remember Crystal always allowed (since version 6 or even before, if memory
doesn't betray me) the so-called heterogeneous joins, so that you could be
able to make a report joining (in the local memory of the client, of
course!) data coming from an Oracle table and an SQL Server table.
Obviously, this is what is happening here.
The problem is, how can we specify the multiple data sources at runtime? I
guess this is not supported anyway.
One potential idea you might like to try is to insert two "dummy" subreports
into the main report, each one using a different data set... At runtime, use
SetDataSource() on each subreport . I don't think it will work.
I think what I'll end up doing is making one huge dataset that combines the schemas of all my seperate datasets and use that "super" dataset as the datasource for my report. I was hoping to avoid this, however, because it is extra code, extra datasets, and causes me to have data in memory twice while creating the report...
After all, maybe it's the best solution. If you were able to specify both
datasets as datasources to the report,
Crystal would end up LOADING BOTH DATASETS INTO HIS OWN MEMORY in order to
do the joins, etc.
Regards - Octavio
<le**********@hotmail.com> escribió en el mensaje
news:11*********************@g47g2000cwa.googlegro ups.com... Octavio- I guess that's where I was getting confused. I have multiple typed-datasets in my project, and crystal was more than happy to let me use multiple typed-datasets at design time, but a run-time when it came time to actually give the report datasources for those multiple datasets, I couldn't figure out how to do it.
I think what I'll end up doing is making one huge dataset that combines the schemas of all my seperate datasets and use that "super" dataset as the datasource for my report. I was hoping to avoid this, however, because it is extra code, extra datasets, and causes me to have data in memory twice while creating the report...
Thanks for your help, Lee This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stephan |
last post by:
Hi,
I'm using Visual Studio 2003 (C#) with the integrated
Crystal Report software and have the following question:
How can I assign a value (string) to an unbound (string)
field in Crystal...
|
by: Ron |
last post by:
I have a bunch of Crystal Reports (v9) published as WebServices and use a
ReportViewer to display the reports on the ASPNET page. Everytime we move
the reports from dev to production we have to...
|
by: Rashmi |
last post by:
I am asked to do a project on crystal reports using vb.net. My module is MULTIPLE QUERIES. I'm a student and new to all this. I am asked to submit a report about my module and how I'll be designing...
|
by: Stig |
last post by:
I'm having two tables with no relation and I want to list them both in one
report. How can I do this. I have tried to use sub report, but cant get it to
work? can someone please help me.
If I just...
|
by: ian_jacobsen |
last post by:
First let me start by saying that this problem is not consistently
reproducible. I have a windows service that creates reports for a
group of entities. This service can process multiple groups at...
|
by: Mihiri |
last post by:
Hi, I am using Crystal Reports for visual studio 2005.( vb.Net Application)
I need to design complex reports which retrieve large number of
records from multiple tables Of Oracle 9i database
It...
|
by: Jlo |
last post by:
Hi, I have a c# winforms application.
When I call the report file, it shows me all the records in the table.
How can I make it to call only a particular range.
i have the following code...
|
by: =?Utf-8?B?VGVycnk=?= |
last post by:
I am brand new to using Crystal Reports and am trying to generate a report
based on a custom object - in another project. I have a layered design, with
all my business objects in a seperate...
|
by: Brock |
last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The
reason for this is that I want the user to be able to change values
without updating the database, but still have their report...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |