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

How to print RadWindow

7 Answers 216 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bichitra
Top achievements
Rank 1
Bichitra asked on 26 Oct 2008, 01:54 AM
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

7 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 27 Oct 2008, 01:42 PM
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.
0
Bob Evans
Top achievements
Rank 1
answered on 27 Aug 2009, 08:41 PM
Does the latest build support printing a Silverlight RadWindow? If not is there a work around possible?

Thanks,
Robert Evans
0
Hristo Borisov
Telerik team
answered on 28 Aug 2009, 07:09 AM
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.
0
jon borchart
Top achievements
Rank 1
answered on 30 Jun 2010, 12:00 AM
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
0
jon borchart
Top achievements
Rank 1
answered on 30 Jun 2010, 12:01 AM

0
Babak
Top achievements
Rank 1
answered on 03 Aug 2011, 04:14 PM
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?
0
Yana
Telerik team
answered on 04 Aug 2011, 09:32 AM
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 >>

Tags
Window
Asked by
Bichitra
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Bob Evans
Top achievements
Rank 1
jon borchart
Top achievements
Rank 1
Babak
Top achievements
Rank 1
Yana
Telerik team
Share this question
or