Solved

VB.NET and Crystal Reports with two datasets

Posted on 2004-10-03
5
505 Views
Last Modified: 2006-11-17
Hi
I use Crystal Reports to show summaries of my data from an ACCESS database. In one case, I want to have two datasets from which to draw data for my report (the second dataset is for a SUBreport). I know how to attach ONE dataset on a Crystal Report, I am using the following:            
oRpt.SetDataSource(MyDataSet.Tables(0))
How do I pass two datasets in a Crystal report?

Thanks for your help
Jason
0
Comment
Question by:lamprianou
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:razo
ID: 12214942
u cant
what u can u do is use one dataset that include all the tables of both datasets and then in each report define the tables that are needed for the report
0
 

Author Comment

by:lamprianou
ID: 12215237
Can you please be more specific? Give an example or something like that? How can I define which table each report/subreport uses?
0
 
LVL 8

Accepted Solution

by:
razo earned 35 total points
ID: 12215405
i mean u can put all the tables in the dataset
then when u r creating the report and using the wizard u can choose this dataset and pick up the tables related to the report
u can do the same when creating the sub report
0
 
LVL 3

Expert Comment

by:RacinRan
ID: 12216707
Are you trying to use dataset 1 for the main report and dataset 2 for the subreport all the time?
0
 

Author Comment

by:lamprianou
ID: 12219803
OK razo,
give me a couple of days to try to use the solution you suggest and I'll come back to you.

Yes RacinRan, I am always using dataset 1 for the main report and dataset 2 for the subreport. Any good ideas?
Jason
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 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

14 Experts available now in Live!

Get 1:1 Help Now