WebBrowser Html Document to Image

前端 未结 2 1847
野的像风
野的像风 2020-12-07 03:57

I\'m trying to make image of webpage, but some pages shows me as white page.

In Registry editor browse \\HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\

2条回答
  •  囚心锁ツ
    2020-12-07 04:43

    try to set User Agent like this

    browser.Navigate(url, null, null, "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0");
    

提交回复
热议问题