by Koen Muilwijk (1 Submission)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)

This code takes a treeview as parameter and generates HTML that exactly represates this treeview. This includes indentation, images, bold-text, etc.
I couldn't find any good code that could generate the right HTML (there were lots of errors in most of the code) so I decided to make my own version.
This code is based on code by Chetan Sarva and for a little bit on Manu Bangia.
Inputs
The treeview itself, the directory where the treeview images are stored and the directory where the images are stored that are used by the treeview
Assumes
Just call the Tree2HTML(...) function with the right paramters
Code Returns
A HTML string
Download Export treeview to HTML (46 KB)