This is a migrated thread and some comments may be shown as answers.

Black and White reports

3 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Naphtali
Top achievements
Rank 1
Naphtali asked on 30 Jun 2009, 10:42 AM

Hi,

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.
Thanks
Naphtali

3 Answers, 1 is accepted

Sort by
0
Hrisi
Telerik team
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.
 

Regards,
Hrisi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Naphtali
Top achievements
Rank 1
answered on 02 Jul 2009, 05:43 PM
Hi,
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: http://www.telerik.com/support/kb/reporting/general/configuring-the-image-rendering-extension-to-generate-tiff-files.aspx
How can I achieve the same for PDF?
Naphtali
0
Steve
Telerik team
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) and export 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.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Naphtali
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Naphtali
Top achievements
Rank 1
Steve
Telerik team
Share this question
or