Articles in this section
Category / Section

How to provide printing option to WinForms TreeViewAdv control?

1 min read

Printing

In WinForms TreeView, 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 WinForms TreeView

Figure 2. TreeViewAdv with printing option.

Show print preview dialog of the WinForms TreeView

Figure 2. Default Print preview dialog of the TreeViewAdv.

Show printer option in WinForms TreeView

Figure 3. Printer option in TreeViewAdv.

Samples:

C#: TreeViewAdv_PrintingOption_C#

VB: TreeViewAdv_PrintingOption_VB

Conclusion

I hope you enjoyed learning about how to provide printing option to WinForms TreeViewAdv control.

You can refer to our WinForms TreeView’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms TreeView documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridListControl and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied