如何在Microsoft Report Viewer单色&中创建报告根据用户要求的颜色 [英] How to make a report in Microsoft Report viewer monochrome & color at user demand

查看:87
本文介绍了如何在Microsoft Report Viewer单色&中创建报告根据用户要求的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
谁能告诉我,
如何在Microsoft Report Viewer单色(黑白)中创建报告颜色可按用户要求?
我正在制作Windows窗体应用程序软件.
预先表示感谢.

Hello everyone,
Can any one please tell me ,
How to make a report in Microsoft Report viewer monochrome(Black & white) & color at user''s demand?
I am making a windows forms application software.
Thanks in advance.

推荐答案

一种实现方法是在将XML文档(即报表定义)加载到Report Viewer控件之前,对其进行操作.您可以使用字符串查找和替换代码,也可以使用XmlDocument对象浏览,调整所有颜色值,然后再将其放到查看器中.然后,您可以从应用程序中的其他位置激活此代码.
One way to do this is manipulate the XML document that is the report definition before loading it into your Report Viewer control. You could use string find and replace code, or browse through using an XmlDocument object, adjusting all the colour values before dropping it in the viewer. You could then activate this code from elsewhere in your application.


感谢您的答复,但是这样我将无法将彩色图片转换为黑白.
有什么主意吗?

再次感谢您.
Thank You for reply, but this way I will not be able to convert color pictures to black & white.
Any idea?

Thank You Once again.


这篇关于如何在Microsoft Report Viewer单色&中创建报告根据用户要求的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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