Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Changing charts in reporting services

Author  Topic 

facollaz
Starting Member

1 Post

Posted - 2007-04-12 : 12:55:27
I need my end-users change the charts without they edit the reports in visual studio. i.e. the report has a pie chart but the end-user wants to see the same report choosing a bar chart.

are there any ways to make it?

thanks for any help.

Fernando.

ACushen
Starting Member

29 Posts

Posted - 2007-04-26 : 14:07:13
Heh. What are you using to generate the reports, for starters?? Crystal Reports? The Report Viewer control? Kinda hard to help without that little bit of info...

In theory, yes, you can do this, but there is no "magic" way. You'll need to have the code in place to generate the report either way, then have a button or something that either changes a property in the report or runs the portion of the code that creates the type of report they want.

-Andrew
Go to Top of Page

jhermiz

3564 Posts

Posted - 2007-04-27 : 09:53:08
Couple of ways to do this.
Create 2 reports one for a pie chart one for a bar chart.
Put the actual report in an IFRAME On your web page.
Have a combo box that allows the user to select "Type of report".
In the combo box (drop down list) have 2 values, Bar Chart, and Pie Chart.
The text field of the drop down list should display simply the type, the value field
should store the URL information for each report. Allow post back on the drop down list.

In the drop down list selectedindexchange event change the IFRAME url to point to the selected report.


Programmers HowTo's -- [url]http://jhermiz.googlepages.com[/url]
Go to Top of Page
   

- Advertisement -