How to print RadWindow

8 posts, 0 answers
  1. Bichitra
    Bichitra avatar
    34 posts
    Member since:
    Aug 2008

    Posted 25 Oct 2008 Link to this post

    Hi,
    I want to print the active Radwindow,
    Is there any solution how to print the active radwindow and its content in silverlight application.
    I want to give print button facility so that i can print the active window.

    Is it possible?

    Thanks
    Bichitra
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 27 Oct 2008 Link to this post

    Hi Bichitra,

    I understand that printing a RadWindow will significantly enhance the user experience, but unfortunately Silverlight 2.0 doesn't support printing from the browser. Currently, I am really sorry that we cannot provide you with such a feature. If you have any further questions or comments feel free to share them with us.

    All the best,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Bob Evans
    Bob Evans avatar
    1 posts
    Member since:
    Jun 2012

    Posted 27 Aug 2009 Link to this post

    Does the latest build support printing a Silverlight RadWindow? If not is there a work around possible?

    Thanks,
    Robert Evans
  5. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 28 Aug 2009 Link to this post

    Hi Bob Evans,

    Unfortunately, Microsoft didn't introduce printing capabilities in their Silverlight 3 release. Looks like they have postponed it for Silverlight 4. However, if you simply  want to print a snapshot of a control, for example the content of RadWindow, I have found an example that uses the functionality of WriteableBitmap to take the snapshot of a control and then sent it to a server which can print it. Here is the link.

    All the best,
    Hristo Borisov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. jon borchart
    jon borchart avatar
    5 posts
    Member since:
    Mar 2010

    Posted 29 Jun 2010 Link to this post

    Silverlight 4 does support printing now..

                PrintDocument document = new PrintDocument();
                document.PrintPage += (s, args) =>
                {
                    args.PageVisual = this.LayoutRoot;
                };
                document.Print("Silverlight Print Application Demo");


    Cheers,
    Jon
  7. jon borchart
    jon borchart avatar
    5 posts
    Member since:
    Mar 2010

    Posted 29 Jun 2010 Link to this post


  8. Babak
    Babak avatar
    1 posts
    Member since:
    Aug 2011

    Posted 03 Aug 2011 Link to this post

    Hi,
    Microsoft Silverlight's WriteableBitMap object has a digital rights management restriction (DRM restriction).
    WriteableBitMap does not give access to pixels when Images have cross domain sources.
    I have a map element that gets some layers from our own map services, and the map element gets the base map service from a company called ESRI.
    We want to create a custom print page for our users based on the map extent and layers that they have chosen.
    The WriteableBitMap DRM restriction does not allow us to create a PNG or JPEG image to put in our custom print page.
    Will Telerik consider building a class that can execute such a function?
  9. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Aug 2011 Link to this post

    Hello Babak,

    Thank you for sending your request, but I'm afraid we cannot help much in the described situation since the WriteableBitMap object has this restriction -  It seems that MS took care not to allow this functionality.

    Best wishes,
    Yana
    the Telerik team

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

Back to Top
DevCraft banner