1) line #5 has to go. unless you intend to implement chromeclient yourself.
2) you need to intercept the print button and divert it to your own print routine.
3) you'll need to use a library like webviewextras to set up an active chromeclient and a javascript interface.
this snippet (tested by me) will intercept the print button:
Dim js As String = $"javascript:(function(){
var e = document.getElementById('input_print_255');
e.addEventListener('click', function(e) {
console.log("you clicked print");
alert("you clicked on print");
// IF YOU CAN EXTRACT THE JOB'S KEY
// YOU CAN PROBABLY DOWNLOAD THE
// FORMATTED OUTPUT AND PRINT IT YOURSELF
});
})();"$
wvx.executeJavascript(webview,js) ' this line is b4a code, not javascript
the button interception and print routine themselves are not difficult.
what will be tricky is how you acquire the formatted output.
i have no idea what jotform is/does or exactly what you're supposed
to do with it, but it appears to handle formatting itself.
web printing is designed to print a rendered webpage. this is what
jotform hands to your browser in the form of your formatted text. your
browser effectively "clicks" the print button and you see the familiar
print dialog. this doesn't work on webview, which is why nothing happens.
you need to create the print job yourself, but you need the
formatted output. jotform grabs it from the mother ship; in
theory you could do the same, but you need the job number.
and some patience. and some expertise. how much time are you
willing to spend on this? webview is not a browser.