问题描述
我的应用程序中有 4 个使用自定义代码绘制的图表....
我还有一个输出数据但不输出图表的 rdlc 水晶报表...
我要做的是在报告中添加图表.
我可以在报表中添加一个图表对象,但我不知道如何对其进行编程,因为它在报表中......而且我不知道如何通过报表查看器引用它......
唯一的解决方案似乎是DataSet绑定但我太困惑了,它应该定制很多......不知道是否可以不编写源代码..有任何想法吗?请帮助这是一个令人头疼的问题
如果是现在在报表设计器中绘制的图表,我知道没有简单的方法将其导入报表.我的建议是从自定义图表中导出数据,然后将其导入到报表中,并使用设计师绘制的图表.由于您的图表是自定义的,我猜设计师绘制的图表上的导入数据看起来与原始数据不完全相同,但至少可以正确呈现数据.
另一种选择是将自定义图表放在表单上并截取屏幕截图并将该图像放在实际报告中.这样做的缺点是图表仍然会出现.这对于 scr 截图很有用:捕获活动窗口的截图?p>
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... 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.
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#水晶报表问题和图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!