This is a migrated thread and some comments may be shown as answers.

Dynamic chart not working in web form

4 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carlo Pondoc
Top achievements
Rank 1
Carlo Pondoc asked on 17 Aug 2011, 08:46 PM
Hi,

Please help.

I created a statistics report with a sub-report that has a chart. The main report shows the client in each page and the sub-report shows the filings made by a particular client in different countries for different years in a series of pie charts. The report runs fine when using the regular "Preview" (see attached image). However, when using the "Html Preview", it shows only the first painted chart for all pages.

The attached image is actually 2 pages of the report in regular "Preview". The "Html Preview" shows only the first chart for all pages. The chart were created programmatically based on parameters passed from the main report.

Thank you.

4 Answers, 1 is accepted

Sort by
0
Carlo Pondoc
Top achievements
Rank 1
answered on 19 Aug 2011, 11:27 PM
Dear Telerik Team,

Have you checked on this issue?

Really appreciate your help on this as this an existing report that we need to give to the client. If this won't work then we might have to revert to original Crystal Report version of this.

Thanks,
Carlo
0
Steve
Telerik team
answered on 22 Aug 2011, 09:33 AM
Hi Carlo,

If the charts for all clients show the data for the first one only, this probably means that the parameter on which you base the chart creation is not taken into account. However note that both Preview and HTML Preview execute the same code, so we cannot provide an explanation why both would show different data.
The fastest way to get to the bottom of this would be if you provide us with a sample runnable report that exhibits the problem. Additionally the demo reports that are installed with the product also use charts that depend on provided parameter, but are bound declaratively - see ProductLineSales and Dashboard demo reports. In the first one the charts are filtered on report level through a report filter, while in the second one the filtering is done on data source level via a datasource parameter which is wired to a report parameter.

Please review the demo reports and if you're still having problems, open a support ticket and provide us with a sample report that exhibits the problem and we would advise you once we review it.

Regards,
Steve
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Carlo Pondoc
Top achievements
Rank 1
answered on 20 Sep 2011, 10:27 PM
Dear Telerik Team,

Thank you for your response.

Your Dashbord demo is not much help because it is very simple and shows each chart ones only. If you print the charts for all years separately, then that is what our report is like.

Anyway, I was able to solve the problem by "clear()"ing the objects after instantiation. The onscreen view is ok. HOWEVER, when I print, the printout still shows only the first chart for all pages. Is this a bug?

Please help.

Thanks,

Carlo

0
Steve
Telerik team
answered on 26 Sep 2011, 09:23 AM
Hi Carlo,

As we kindly asked in our previous post, we cannot provide a concrete suggestion unless we have your code (preferably runnable sample) that exhibits the issue. You can open a support ticket and attach the sample there.

Regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Carlo Pondoc
Top achievements
Rank 1
Answers by
Carlo Pondoc
Top achievements
Rank 1
Steve
Telerik team
Share this question
or