C#Crystal Report问题和图表? [英] C# Crystal Report problem and chart?

查看:67
本文介绍了C#Crystal Report问题和图表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的应用程序中有4个使用自定义代码绘制的图表...。

我也有一个rdlc crystal报告,该报告输出数据,但不输出图表...

我要做的是在报表中添加图表。

我可以在报表中添加图表对象,但是我不知道如何编程,因为它位于report ..而且我不知道如何通过reportviewer引用它。


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...

唯一的解决方案似乎是DataSet绑定,但我太困惑了,应该对其进行自定义很多...不知道是否有可能不编写源代码..
有什么想法吗?
请帮助这令人头疼

Only solution seems to be DataSet binding but i am too confused, it should be customized a lot... dont 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.

另一种选择是将自定义图表放在表单上并进行屏幕截图,然后将该图像放置在实际报告中。这样做的缺点是图表将仍然显示。这对scr射击很有用:捕获活动窗口的屏幕截图?

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?

这篇关于C#Crystal Report问题和图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆