Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
amitkarnik2211 12-Mar-11 3:23am    
Pls Send the codes that u hv tried so far

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.
 
Share this answer
 
Comments
sumit.itsforyou 12-Mar-11 13:47pm    
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.
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.
 
Share this answer
 
Comments
MarqW 13-Mar-11 8:04am    
Technically, you could in the same fashion, you can alter the value of the image boxes to point to a black and white version of the image (say you had a duplicate set of images suffixed _bw, you could just add that to the filename)

If images are dynamic, you could always use GDI+ code to convert images at runtime to black and white, then save them and point the report definition to them

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900