Groups | Blog | Home
all groups > sql server reporting services > december 2004 >

sql server reporting services : Generate chart dynamically


David
12/1/2004 3:25:04 PM
Can sombody tell me how to generate cahrt dynamically in reporting service?

I need to generate a number of charts based on the number specified.

Thanks
--
Robert Bruckner [MSFT]
12/1/2004 7:53:48 PM
Not sure what you exactly mean with dynamically "generate a number of
charts" - but did you look into the Visibility.Hidden property of the chart?
You can define several charts at design time and hide them using an
expression at runtime (dependent on e.g. a parameter value).

--
This posting is provided "AS IS" with no warranties, and confers no rights.



[quoted text, click to view]

Tom VdP
12/2/2004 2:23:02 AM

I 've got a chart (2 actually) inside a list. It creates the charts for
each element in the list. Works like a charm. (Except that you cannot
control the Y-scale, but that will be solved in the next release, I hear).

Hth,
Tom

[quoted text, click to view]
David
12/2/2004 3:55:06 PM
Hi, Robert :

Thank you for your kind help. As my project, I do not know how many charts
will be generated. It depends on the number that a user specifies. What I am
planning to do is to use the following codes to generate chart dynamically:

Response.Write("<cc1:ReportViewer id='ReportViewer1' style='Z-INDEX: 101;
LEFT: 8px; POSITION: absolute; TOP: 8px' runat=server Width=680px
Height=632px ServerUrl='http://localhost/reportserver' ReportPath='/Sample
Report/Report1'" & _
"Toolbar=Default></cc1:ReportViewer>")

Of course I need to pass a parameter to the report so that the chart will be
different. However, it looks like the the above codes does not work.

Robert. Could you give me some suggestions?

Thanks a lot,

David

[quoted text, click to view]
AddThis Social Bookmark Button