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

SL: expand hidden sections when printed

4 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter van Rees
Top achievements
Rank 1
Peter van Rees asked on 15 Jun 2011, 01:21 PM
I have reports with hidden sections in them. These sections can be shown/hidden through actions defined on their parent elements.

When a user prints a report, it is printed as it is shown in the viewer, expanded sections are printed, hidden sections are not. I would like to somehow hook into the print event and expand all sections prior to printing. Is this possible?

(I am using the SL viewer)

4 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 16 Jun 2011, 11:41 AM
Hi Peter,

The current behavior is by design - we print what is shown in the viewer. If you want to print the entire report with everything expanded i.e. no actions applied, you can hide/remove the print button from the Silverlight viewer template and add your own button for printing the report, which would in fact print the same report with no actions applied or default state expanded.

Best wishes,
Steve
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
0
Peter van Rees
Top achievements
Rank 1
answered on 16 Jun 2011, 12:08 PM
Hi Steve,

Thanks for the answer. Can you give me some directions on how to change the template?

Peter
0
Steve
Telerik team
answered on 16 Jun 2011, 12:16 PM
Hi Peter,

You can use Blend for this purpose as explained in the Creating Style in Expression Blend help article.
General information on styling templated controls is available in the Styling a control that supports templates MSDN article.

Best wishes,
Steve
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
0
Peter van Rees
Top achievements
Rank 1
answered on 16 Jun 2011, 12:18 PM
Thanks Steve!
Tags
General Discussions
Asked by
Peter van Rees
Top achievements
Rank 1
Answers by
Steve
Telerik team
Peter van Rees
Top achievements
Rank 1
Share this question
or