473,396 Members | 2,030 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,396 software developers and data experts.

Report from DataGridView - Advice Please

I have a windows form that contains a datagridview containing
manipulated data from various sources (numerous sql servers + xml
files). I now need to create a report from the data in the
datagridview.
Do I need to convert the datagridview into something else (dataset?)
or should I have put the data into a dataset in the first place.
Assuming I can create a 'Data Source' from my data, can you advise me
on how to launch a report from a windows form?

Any advice/suggestions gratefully received.
TP
Jan 10 '08 #1
4 4617
Peter Forman <xl****@gmail.comwrote in news:152cfa44-ba8a-4277-bae6-
95**********@f47g2000hsd.googlegroups.com:
I have a windows form that contains a datagridview containing
manipulated data from various sources (numerous sql servers + xml
files). I now need to create a report from the data in the
datagridview.
DataGridView is a display only component, it does not inherently provide
reporting features.
Do I need to convert the datagridview into something else (dataset?)
or should I have put the data into a dataset in the first place.
Assuming I can create a 'Data Source' from my data, can you advise me
on how to launch a report from a windows form?
What sort of report do you require? Raw data? Formatted reports?

If you want formatted reports, you'll need to use a reporting tool such as
Crystal, Reporting Services, ActiveReports, etc.
--
sp**********@rogers.com (Do not e-mail)
Jan 10 '08 #2
On Jan 10, 9:46 pm, Spam Catcher <spamhoney...@rogers.comwrote:
Peter Forman <xla...@gmail.comwrote in news:152cfa44-ba8a-4277-bae6-
95840efec...@f47g2000hsd.googlegroups.com:
I have a windows form that contains a datagridview containing
manipulated data from various sources (numerous sql servers + xml
files). I now need to create a report from the data in the
datagridview.

DataGridView is a display only component, it does not inherently provide
reporting features.
Do I need to convert the datagridview into something else (dataset?)
or should I have put the data into a dataset in the first place.
Assuming I can create a 'Data Source' from my data, can you advise me
on how to launch a report from a windows form?

What sort of report do you require? Raw data? Formatted reports?

If you want formatted reports, you'll need to use a reporting tool such as
Crystal, Reporting Services, ActiveReports, etc.
Thanks,
Yes, I do want to use a formatted report such as crystal - so how can
I get the data from a Datagridview into crystal?
That's where I'm stuck.

Jan 11 '08 #3
Peter Forman <xl****@gmail.comwrote in news:bea99c63-0c7d-4b41-b855-
8b**********@t1g2000pra.googlegroups.com:
Thanks,
Yes, I do want to use a formatted report such as crystal - so how can
I get the data from a Datagridview into crystal?
That's where I'm stuck.
What is your underlying datasource? What datasource are you manipulating?
You'll have to pass that datasource to Crystal - i.e. a SQL string, a
dataset, etc.

--
sp**********@rogers.com (Do not e-mail)
Jan 11 '08 #4
On Thu, 10 Jan 2008 23:24:28 -0800 (PST), Peter Forman
<xl****@gmail.comwrote:
>On Jan 10, 9:46 pm, Spam Catcher <spamhoney...@rogers.comwrote:
>Peter Forman <xla...@gmail.comwrote in news:152cfa44-ba8a-4277-bae6-
95840efec...@f47g2000hsd.googlegroups.com:
I have a windows form that contains a datagridview containing
manipulated data from various sources (numerous sql servers + xml
files). I now need to create a report from the data in the
datagridview.

DataGridView is a display only component, it does not inherently provide
reporting features.
Do I need to convert the datagridview into something else (dataset?)
or should I have put the data into a dataset in the first place.
Assuming I can create a 'Data Source' from my data, can you advise me
on how to launch a report from a windows form?

What sort of report do you require? Raw data? Formatted reports?

If you want formatted reports, you'll need to use a reporting tool such as
Crystal, Reporting Services, ActiveReports, etc.

Thanks,
Yes, I do want to use a formatted report such as crystal - so how can
I get the data from a Datagridview into crystal?
That's where I'm stuck.
Unless the DataGridView is unbound, the data is stored in whatever the
grid is bound to - DataTable, BindingList, etc. It is that source
that you want to use as the source for printing.
Jan 11 '08 #5

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

Similar topics

10
by: steve | last post by:
Hi All I would like to be able to change the cell borders on certain cells to none at runtime to make a group of cells appear to be merged I have tried the following in the cellformatting...
3
by: Daniel Manes | last post by:
I need a strategy to debug this situation... I can't put all the code involved, but here are some of the critical lines with comments: ------------------------- Private _parentDataCell As...
5
by: DanThMan | last post by:
The situation: * I have a ButtonColumn in a DataGridView. * When the user preses one of the buttons, a dialog appears. * Based on what the user selects in the dialog, data is entered...
2
by: Cheryl | last post by:
Hi! I have a datagridview that create views for a dynamic dataset. Now I would like to put the whole datagridview to a crystal report? Any ideas to do this? Thanks!
2
by: Screaming Eagles 101 | last post by:
And if it's possible, how can I do this please ? -- Filip http://www.ww2airborne.net/ Official Site of the 101st Airborne - 463rd PFA skype: airborne463pfa-fiwi ...
7
by: harikap | last post by:
hi , here im using vb.net 2005how can i add radiobuttons as column to windows datagridview control plz help me....
0
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello Gurus, I need to create a Microsoft Visual Studio 2005 report at runtime. I wrote a C# window application, that holds a DataSet and several DataGridView controls. Each of the...
0
gsgurdeep
by: gsgurdeep | last post by:
Hello Friends I want to fill crystal report with the data displayed in DataGridView. Data of DataGridView is filled at run time. In my project DataGridView Is filled with some data based on...
3
by: weirdguy | last post by:
Hello, I need advise on how to solve this scenario. I am not sure whether I should use any Report Application such as Crystal Report or I can just simply use datagridview. My scenario: In a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.