Skip to content

mapitman/PrintTreeView

Repository files navigation

PrintTreeView

A small library to print a Windows Forms TreeView Control

Introduction

I looked and looked for a sample code to print TreeView controls in C#. I couldn't find anything that did exactly what I needed, so I broke down and wrote it myself!

Background

During my search for a printing sample, I came across this article by Koay Kah Hoe, which presents a solution in C++. It gave me a few ideas and after finding some information on Usenet about getting an image of a control, I was ready to code.

Using the code

The PrintUtility class should be fairly easy to use from just about any Windows Forms application. Just call either PrintTree or PrintPreviewTree, passing in your TreeView.

This code was originally published as part of an article on CodeProject.com.

About

A small library to print a Windows Forms TreeView Control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages