Report from DataGridView - Advice Please

P

Peter Forman

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
 
G

Guest

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.
 
P

Peter Forman

DataGridView is a display only component, it does not inherently provide
reporting features.


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.
 
G

Guest

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.
 
J

Jack Jackson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top