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

Print the ScheduleView

5 Answers 208 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
loowool
Top achievements
Rank 2
loowool asked on 14 Jun 2011, 03:19 PM
Dear Telerik,

I searched for some reference to Printing a ScheduleView content or exporting it to some PDF file, but could not find any.
I found the following WPF thread http://www.telerik.com/community/forums/wpf/scheduleview/print.aspx#1454069 that talks about the same feature but in WPF and not Silverlight, but could not make it work.

Can you help (as always)

Salah A. Malaeb
TeknoBuild

5 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 20 Jun 2011, 10:01 AM
Hello Salah,

I've prepared a simple example which demonstrates how you can print RadScheduleView for Silverlight using PrintDocument class.  Please download it and give it a try.

Hope this helps.

Regards,
Yana
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
PaulH
Top achievements
Rank 1
answered on 14 Sep 2011, 11:44 AM
I've been struggling to get this to work in the way I want. I have a radScheduleView that sits in a RadWindow but it's too large to display in its entirety so it has scroll bars to view all the content, which in itself is fine. However, when a user wants to print it I want it to be able to print this entire schedule (the existing day, week or month view) onto a single landscape page. I've been attempting to calculate and perform a scaletransform on the container of the schedule view (a grid) so as to get it to size the whole schedule view to the single page but it simply keeps scaling the visible portion down. Can you suggest a way I could get this to work please?

Thanks in advance
0
Yana
Telerik team
answered on 19 Sep 2011, 03:28 PM
Hi Paul,

We're not sure why the provided solution doesn't work in your case. Can you please open a support ticket and send us a simple example showing your exact scenario, so we could test it? Thanks

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
PaulH
Top achievements
Rank 1
answered on 19 Sep 2011, 03:50 PM
Hi there and thanks for your reply.

I have managed to get it to work. I had to initially re-size the Grid control that the schedule view sat inside to be the actual size of the grid + the schedule view's ExtentHeight and ExtentWidth. Then I resized the schedule view using the .Measure method followed by a .UpdateLayout. After this I was able to calculate the scale based on the printable area of the page and apply a ScaleTransform to the schedule view and pass this to the print document as the source of the document. Then in the end event I resized the schedule view and the grid back to its original sizes and all seems to work nicely.
0
Jiri
Top achievements
Rank 1
answered on 27 Feb 2014, 12:13 PM
Hi Paul,

Is it possible to see your solution?

Thank you,
Jiri
Tags
ScheduleView
Asked by
loowool
Top achievements
Rank 2
Answers by
Yana
Telerik team
PaulH
Top achievements
Rank 1
Jiri
Top achievements
Rank 1
Share this question
or