473,505 Members | 13,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# DataSet and CrystalReport in Windows Form

Hi,

Now that I've built up a DataSet and a CrystalReportViewer in Form1. Also
the CrystalReportViewer is pointing to CrystalReport1. The Form1 can open
the CrystalReport1.
However, I don't know how to have the CrystalReport1 or CrystalReportViewer
use the DataSet.
How does a textbox in a CrystalReport can grab data from a DataSet?
Any help will be appreciated.
Jason
Nov 17 '05 #1
2 2702
Hi,

ReportDocument.SetDataSource is the answer.

You could also pass some parameters for things like labels.

I don't know how to include a textbox though.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:eY**************@TK2MSFTNGP15.phx.gbl...
Hi,

Now that I've built up a DataSet and a CrystalReportViewer in Form1. Also
the CrystalReportViewer is pointing to CrystalReport1. The Form1 can open
the CrystalReport1.
However, I don't know how to have the CrystalReport1 or
CrystalReportViewer use the DataSet.
How does a textbox in a CrystalReport can grab data from a DataSet?
Any help will be appreciated.
Jason

Nov 17 '05 #2
Thanks Ignacio.
The SetDataSource really helps!

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> ¼¶¼g©ó¶l¥ó·s»D:%2****************@TK2MSFTNGP12.phx .gbl...
Hi,

ReportDocument.SetDataSource is the answer.

You could also pass some parameters for things like labels.

I don't know how to include a textbox though.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:eY**************@TK2MSFTNGP15.phx.gbl...
Hi,

Now that I've built up a DataSet and a CrystalReportViewer in Form1.
Also the CrystalReportViewer is pointing to CrystalReport1. The Form1
can open the CrystalReport1.
However, I don't know how to have the CrystalReport1 or
CrystalReportViewer use the DataSet.
How does a textbox in a CrystalReport can grab data from a DataSet?
Any help will be appreciated.
Jason


Nov 17 '05 #3

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

Similar topics

1
1334
by: s-galit | last post by:
i want that the crystalReport will show the data which is in the dataSet how can i do that? thanks
3
15511
by: redneon | last post by:
I've populated a DataSet in my C# program and verified that it contains the data I passed it. I've then created a blank CrystalReport and set it's DataSource to my DataSet. Then I created a...
1
3017
by: Jason Huang | last post by:
Hi, Would someone tell me how to open a CrystalReport in my ASP.Net C#? We can use the Show method to open a windows form, but what method should we use for opening a CrystalReport? Thanks for...
2
8465
by: Don Wash | last post by:
Hi All! I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so...
2
1161
by: Gary Shell | last post by:
I have jumped in to the deep end of the pool, trying out visual inheritance of a form and have run into a snag. I have the need to create a simple maintenance form for five identically...
2
2491
by: krunom | last post by:
Hi, i am a newby in Crystal Reports design, and i wrote a c# windows form application that creates a DataSet. And, now i want to pass this DataSet to CrystalReport (via DataSource?) and i do...
6
1483
by: Wilfried Mestdagh | last post by:
Hi, I have done following: Add new item - Dataset, then add DataTable, and add a few fields (VS2005) because this seems the only way to let a Crystalreport recognize a datatable in the project....
0
1561
by: agcabutotan | last post by:
Hi to everyone. I am new in this thread, please help me. I'm having difficulty with CrystalReport.Net. I have a completed project written and compiled in VB.Net (and I used CrystalReport.Net in...
1
1979
by: Flupke | last post by:
Hello, I'm trying to figure out how to create a Crystal Report in VB2005 using a CrystalReportViewer from a dataset that I created on a form Form1. The dataset (from an Access Database) appears on...
0
7366
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...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.