Print the ScheduleView

6 posts, 1 answers
  1. loowool
    loowool avatar
    60 posts
    Member since:
    Sep 2006

    Posted 14 Jun 2011 Link to this post

    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
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 20 Jun 2011 Link to this post

    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
  3. DevCraft banner
  4. PaulH
    PaulH avatar
    26 posts
    Member since:
    Mar 2011

    Posted 14 Sep 2011 Link to this post

    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
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 19 Sep 2011 Link to this post

    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 >>

  6. PaulH
    PaulH avatar
    26 posts
    Member since:
    Mar 2011

    Posted 19 Sep 2011 Link to this post

    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.
  7. Jiri
    Jiri avatar
    40 posts
    Member since:
    Oct 2013

    Posted 27 Feb 2014 in reply to PaulH Link to this post

    Hi Paul,

    Is it possible to see your solution?

    Thank you,
    Jiri
Back to Top
DevCraft banner