944,075 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 5467
  • ASP.NET RSS
Dec 4th, 2006
0

create dynamic reports in asp.net

Expand Post »
can we create dynamic reports in asp.net?

the specification is as follows:

we should be able to list all tthe columns from a table and the user dynamically select the columns for generating the report.

plz help me

thanks in advance
sridhar
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sridhar_msd is offline Offline
4 posts
since Dec 2006
Dec 4th, 2006
0

Re: create dynamic reports in asp.net

1. Look up INFORMATION.SCHEMA in the Sql Server manual (known as books online) Assuming your database is Sql server, that will help you get a dataset of columns.

2. Use the dataset of columns as the DataSource of a ListBox WebControl, set MultiSelect property to true.

3. Concatenatet the users selections in the ListBox control into a SQL statement.

4. Use ADO.NET to execute the SQL and return a dataset, pass the the dataset to a datagrid or gridView WebControls' datasource, whos AutoGenerateColumns property is set to true
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Dec 5th, 2006
0

Re: create dynamic reports in asp.net

hi,

thanks for your help.

but i want to generate the reports in dynamic by selecting a set of columns in a table.

is it possible

pl help me on this

thanks in advance
sridhar
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sridhar_msd is offline Offline
4 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Ajax
Next Thread in ASP.NET Forum Timeline: File rename and move





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC