C#水晶报表问题和图表?

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

问题描述


我的应用程序中有 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#水晶报表问题和图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)