WebHTMLViewer Zoom

Has anyone come up with a way to zoom in/ out a WebHTMLViewer?

Have you tried this? css - Changing page scale via javascript - Stack Overflow

1 Like

Add a slider to your window and in the ValueChanged event add -

HTMLViewer1.ExecuteJavaScript "document.body.style.transform = 'scale(" + Format(me.Value/100, "#.#") + ")';"

**Slider minimum 100 - maximum 300 in the demo, with steps of 10 as an interval.

:slight_smile:

1 Like