Html2Canvas example please

0
0

Hi,

there is no documentation for Html2Canvas, please can you write an example? (vbnet I prefere 😉 )

thank you so much

Cristian

  • You must to post comments
0
0

Solved updating the javascript html2canvas.js of the extension

bye

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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

 

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.