You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's because you are probably using a browser that doesn't support something that html2canvas needs. Check with F12, my guess is that it's the promise construct that is not supported by IE10. Try with Chrome instead.
I have insert Polyfill and update the JavaScript, now works with IE (11), Edge, and Chrome, but not with Firefox. But the demo con site https://html2canvas.hertzen.com/ works olso with Firefox
Activity
itg-assistant commentedon Jun 13, 2026
Luca answered 2018-04-30 18:37:32 UTC
https://html2canvas.hertzen.com/
How to use the Wisej is documented in the code, it's one call:
Html2Canvas.Screenshot((image) => {
....
});
See the overloads for the additional options.
itg-assistant commentedon Jun 13, 2026
Cristian Zerbinati answered 2018-04-30 19:34:43 UTC
Sorry Luca,
I don't understand how use it, I have a test button with this code on Click
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Html2Canvas.Html2Canvas.Screenshot(
Sub(ByVal img As Image)
PictureBox1.Image = img
End Sub
)
End Sub
but do nothing, If I put a breakpoint on row PictureBox, the visual studio don't break on it
thanks
Cristian
itg-assistant commentedon Jun 13, 2026
Luca answered 2018-05-01 00:07:58 UTC
That's because you are probably using a browser that doesn't support something that html2canvas needs. Check with F12, my guess is that it's the promise construct that is not supported by IE10. Try with Chrome instead.
You can also add a polyfill like this https://polyfill.io/v2/docs/ to Default.html. I tried with IE10 and now it works. See the requirements at https://html2canvas.hertzen.com/documentation.
itg-assistant commentedon Jun 13, 2026
Cristian Zerbinati answered 2018-05-01 07:43:06 UTC
Ok I'll try to add polyfill, but I use Firefox and Chrome. The demo on hertzen.com works, but not my code with wisej. I have try vbnet and c#
Cristian
itg-assistant commentedon Jun 13, 2026
Cristian Zerbinati answered 2018-05-01 10:30:59 UTC
I have insert Polyfill and update the JavaScript, now works with IE (11), Edge, and Chrome, but not with Firefox. But the demo con site https://html2canvas.hertzen.com/ works olso with Firefox
itg-assistant commentedon Jun 13, 2026
Cristian Zerbinati answered 2020-05-14 07:53:54 UTC
Solved updating the javascript html2canvas.js of the extension
bye