How to take screenshot of div from a webpage using C# and ASP.NET?

后端 未结 2 720
醉话见心
醉话见心 2020-12-18 08:41

I would like to create dynamic images from html that I\'m generating on website. I have code that generates a PSN Trophy Card, ab Xbox LIVE Gamer Card, a Steam Gamer Card, a

2条回答
  •  鱼传尺愫
    2020-12-18 09:13

    If you need to take a screenshot you will need to do so client side. So you will need to do so using some client side tecnology like javascript, flash, silverlight... Asp.net runs on the server so it is ruled out.

    Here are some links to other related SO questions about taking a screenshot with javascript:

    JavaScript code to take a screenshot of a website without using ActiveX

    Take a screenshot of a webpage with JavaScript?

提交回复
热议问题