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

Printing RadTreeView

6 Answers 134 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Hrushikesh
Top achievements
Rank 1
Hrushikesh asked on 20 Oct 2010, 10:37 PM
How can i Print a RadTreeView same like RadGridview?

Thank you
Hrushikesh Patel

6 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 25 Oct 2010, 12:37 PM
Hi Hrushikesh,

Please take a look at the attached project as it demonstrates one possible way to print a TreeView. Let me know how it works for you.

Sincerely yours,
Kiril Stanoev
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
Anil Gupta
Top achievements
Rank 1
answered on 08 Jan 2011, 04:12 PM

I have the same scenario but the treeview is in collapse state. I want to print out all the nodes.

Is it possible to expand all the nodes and get the print out. I tried the updatelayout event but it is not working. Can you suggest a way or give me a sample for it?

 

Thanks

Anil

0
Petar Mladenov
Telerik team
answered on 12 Jan 2011, 11:14 AM
Hello Hrushikesh,

Please check out the attached sample and let us know how it goes. Basically, I use RadTreeView.ExpandAll() in the PrintPage event handler of the PrintDocument  and CollapseAll() in the EndPrint event handler. If your tree is databound and particular RadTreeViewiItems should be collapsed or expanded after printing, just rebind the tree instead of using CollapseAll().
Feel free to ask if you need further assistance.

Kind regards,
Petar Mladenov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Hrushikesh
Top achievements
Rank 1
answered on 13 Feb 2011, 01:43 PM
The Solution given was working for small amount of data. if large amount of data the printer is showing spooling for long time and not complete.
Please reply. I am Stuck on this part.
Thank you
Hrushikesh
0
Petar Mladenov
Telerik team
answered on 17 Feb 2011, 10:34 AM
Hello Hrushikesh,

Please excuse us for the delayed response. We need some more time to investigate this issue in depth. We'll contact you later today. Thank you for your patience.

Best wishes,
Petar Mladenov
the Telerik team
0
Kiril Stanoev
Telerik team
answered on 17 Feb 2011, 03:24 PM
Hello Hrushikesh,

After some investigation I believe we can't do much about this issue. What I've discovered so far is:
1) Silverlight sends BMPs to the printer
2) We cannot control the DPI of the printer

The two factors above cause Silverlight to send large amounts of data to the printer which causes the lag.
In Silverlight 5 there will be vector printing which in my opinion will fix the current problem.
Also, what I've discovered so far is that if I pass a WriteableBitmap (not UIElement) to e.PageVisual, printing is much faster. I'll continue investigating for further workarounds and get back to you as soon as possible.

Regards,
Kiril Stanoev
the Telerik team
Tags
TreeView
Asked by
Hrushikesh
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Anil Gupta
Top achievements
Rank 1
Petar Mladenov
Telerik team
Hrushikesh
Top achievements
Rank 1
Share this question
or