开发者

C# Crystal Report problem and chart?

I have 4 charts at my application drawn with custom code....

I also have a rdlc crystal report that outputs the data but not the chart...

What i have to do is to add the chart at the report.

I can add a Chart object at the report but i dont know how to program it since it is in the report.. and i dont know how to refer to it via the reportviewer...

Only solution seems to be DataSet binding but i am too confused, it should be customized a lot... don开发者_StackOverflowt know if it is possible without writing source code.. Any ideas? Please help this is a headache


If it's a chart now drawn in the report designer, I know no easy way of importing it to the report. My suggestion would be to export the data from the custom chart and import it back to the report into a chart drawn with the designer. As your chart is custom, I'm guessing that the imported data on the designer drawn chart won't exactly look like the original but that will at least properly present data.

Another option would be to put the custom chart on a form and taking a screenshot and placing that image on the actual report. The drawback on this would be the chart will appear still. This will be useful for scr shot: Capture screenshot of active window?


Here is a good tutorial explaining how charts works on Crystal Reports 2010 and what you need to do to create a basic report with a chart, including the C# code.

Based on it, you'll be able to understand how to improve with more complex charts.


You should try to Subreport to show the chart.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜