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

Print grid in color

1 Answer 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joe Lozina
Top achievements
Rank 1
Joe Lozina asked on 21 Jun 2010, 08:04 AM
Hi,

I have a grid where the background of cells are different colors based on the value of the cell, the the first three columns (GridViewDataColumn ) backgrounds are in color also.

I am trying to print the grid in color but the output from a color printer always ends up being black and white.

I tried printing based on the printing example in the demo. http://demos.telerik.com/silverlight/#GridView/Printing

I've also tried printing based on the blog http://blogs.telerik.com/vladimirenchev/posts/10-01-15/how_to_print_your_datagrid_or_any_uielement_on_multiple_pages_with_silverlight_4.aspx

Even if I set the GridViewDataColumn Background property to a color it still doesn't print those columns in color.

Also when I export the grid to excel the background colors don't appear as well.

Can you let me know how to print and export a grid in color?

Regards,
Joe

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 21 Jun 2010, 08:37 AM
Hello Joe,

 I've attached an example to illustrate you how to achieve your goal with printing. To style the exported output (supported only for HTML export) you can use the approach demonstrated in our demo.

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Joe Lozina
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or