I would like to know if there is a way to change the report from the regular style to be in black and white. I would like this to be changeable either by code or even better using a report parameter to indicate if we want it in black and white or color.
3 Answers, 1 is accepted
answered on 02 Jul 2009, 05:15 PM
Hello naphtali davies,
Our Reporting offers extended support for styling - both at design time and also at run time. Our styles are analog of CSS - you can define style sheets, global styles or inline. Additionally we support conditional formatting.
It will be nice if you share with us the concrete problem you cannot resolve in order to be more helpful in our response.
Thanks for your reply.
I have a report that in addition to displaying it in a report viewer i
need to send to a service that prints the report. The report for the
services needs to be in a PDF format and in black and white (Color
printing is for expansive).
So while I want the report in color in the viewer i want to create a black and white PDF file of the report.
If the export would have been to a TIFF format I could set the
DeviceInfo properties as explained here:
How can I achieve the same for PDF?
answered on 07 Jul 2009, 02:09 PM
Hi naphtali davies,
Thank you for the thorough explanation. As we see things you have three options:
use styles to change the look of a single report
create two versions of the same report - one styled as per your requirements (to show in viewer) and another one without any styles which would be used for printing. You can disable the exporting option from the viewer's toolbar (set ShowExportGroup=false) andexport the report programmatically through your own UI, thus passing the "black & white" report for the export.
have a single colored report that is shown in viewer and export to TIFF programmatically as per the settings from the article you've referenced and print it.