473,386 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Crystal Reports and DataSets

Hello all:

I am not sure if this is the right place to post this but I could not
find a specific Crystal Reports forum in the Microsoft forums nor the
Business Objects website.

Anyways, I am trying to find the best way to get data from several
tables into a single report. We have a series of records in one table
that relate to various jobs that we are bidding. We have another table
that has records of the many contractors that we deal with. These two
tables are setup in a many-to-many relationship so that we have an
interim table that links the two called bidstocontractors that contains
an id for each record made up of a bidid and a contractor id.

So on some reports we need to pull data relating to a job, but also the
records of the other table as well when needed. I have a DataSet that
contains all the tables but I'm not sure how to get the data for both
tables to display (for instance when I have a parameter setup to select
a subset of data). I am not even sure it is even possible.

Thanks for any direction you can give me.

- John -
Jul 21 '05 #1
3 1650
You can set the report's datasource to a dataset, which is in the "More
Data Sources" section. To set the report to use a dataset, you either
select an XML file describing the dataset or a class representing the
data. You can use the IDE to create a typed dataset, providing you
both options: XML and a class. If you do not want to use a typed
dataset in your code, then just create one for the sole purpose of auto
generating the XSD file. Use the SetDataSource method of the Crystal
report object so set the source during runtime.

Jul 21 '05 #2
Boyd Ferris wrote:
You can set the report's datasource to a dataset, which is in the "More
Data Sources" section. To set the report to use a dataset, you either
select an XML file describing the dataset or a class representing the
data. You can use the IDE to create a typed dataset, providing you
both options: XML and a class. If you do not want to use a typed
dataset in your code, then just create one for the sole purpose of auto
generating the XSD file. Use the SetDataSource method of the Crystal
report object so set the source during runtime.

I have done this and already have it working to the point of getting the
data from one of the tables that are in the DataSet, but I need data
from two tables. Does Crystal support table joins. I can see that it
allows you to view the SQL query that it gets the data from but can you
edit this?
Jul 21 '05 #3
Crystal supports table joins and filters. Use Visual Linking Expert to
create joins on your tables and use "Edit Selection Formula" context
menu to apply a filter to the information. (You can edit the selection
criteria by right clicking an empty spot on the report and selecting
the Report menu option.)
Good luck,

Boyd

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
3
by: oscar | last post by:
is there a way of integrating mysql databases into the .net crystal reports? in the report wizard i have options for sql databases, but nothing for mysql. is there a plugin i'm missing for it? ...
3
by: lee_mcknight | last post by:
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...
7
by: TJoker .NET | last post by:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR). My reports get their...
7
by: sdibello | last post by:
Hi All, I have a windows application. I've built a report section that fills typed datasets and builds crystal reports off those datasets. They work fine on my local dev machine, however on other...
9
by: Doug | last post by:
Simple question, hoping for a quick answer: Using Visual Studio .NET 2003 and Crystal Reports 10, is it possible to connect to a SQL Server 2000 database using Windows Authentication/Integrated...
9
by: Altman | last post by:
I am currently using ASP.Net 2003 and will be upgrading to 2005 sometime in the near future. I have been having issues with using Crystal Reports that were included with .Net to handle my...
0
by: studboyshabbir | last post by:
Dear All, I am not sure, I am asking this question under right thread but pls help. I am facing following Problem. I'm developing an VB.NET Windows Forms application that uses CR for VS.NET...
1
by: =?Utf-8?B?QW5kcmVhcw==?= | last post by:
Our company have one asp.net 2.0 web application using c# as code behind and one C++ windows application. Both applications are using Crystal Reports (v 10) as report engine. The web app. just...
7
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.