)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to provide printing option to WinForms TreeViewAdv control?

Platform: WinForms |
Control: TreeViewAdv |
Published Date: February 15, 2016 |
Last Revised Date: February 4, 2020
Tags: printing, print

Printing

In TreeViewAdv, information can be printed by using functions named “PrintPreview” and “Print”.

PrintPreview: This function helps to preview the control information, before proceeding to print.

Print: This function helps to print TreeViewAdv information.

C#

//To shows the TreeViewAdv print preview dialog.
this.treeViewAdv1.PrintPreview();
 
//To print the TreeViewAdv.
this.treeViewAdv1.Print();

VB

'To shows the TreeViewAdv print preview dialog.
Me.treeViewAdv1.PrintPreview()
 
'To print the TreeViewAdv.
Me.treeViewAdv1.Print()

Screenshot

Show printing option in TreeViewAdv

Figure 2. TreeViewAdv with printing option.

Show print preview dialog of the TreeViewAdv

Figure 2. Default Print preview dialog of the TreeViewAdv.

Show printer option in TreeViewAdv

Figure 3. Printer option in TreeViewAdv.

Samples:

C#: TreeViewAdv_PrintingOption_C#

VB: TreeViewAdv_PrintingOption_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon