How do you take a Screenshot of a website via .Net code?

前端 未结 4 892
别跟我提以往
别跟我提以往 2020-12-09 05:08

Is it possible to take a screen shot of any given url using .Net code?

What is the easiest way to do it?

4条回答
  •  一整个雨季
    2020-12-09 05:10

    There are several 3rd party components that does this. Apparently it's not trivial, since things like Flash and stuff don't capture so easily, for example.

    I've used HTMLSnapshot in the past and was pleased with it (it's not free, but pretty cheap).

    I heartily suggest you don't waste too much time implementing this yourself because you're bound to end up redoing a lot of end-cases that these 3rd party solutions already handle.

提交回复
热议问题