[Closed] Webbrowser DocumentText won't display for 3dsmax lower version
Hi,all
Recently I have a project need to get content from a Webbrowser embed in 3dsmax,at first all works fine (Win7 IE 10) ,after reinstalled my computer system(Win7 IE 9),I can’t get the webbrowser content for 3ds max lower version (2009~2012) for some site,codes like below:
try(destroydialog wb_text_test) catch()
rollout wb_text_test "HTML Interface" width:720 height:600
(
dotNetControl w_b "System.Windows.forms.WebBrowser" pos:[4,4] width:720 height:600
on wb_text_test open do
(
--w_b.ScriptErrorsSuppressed=true
w_b.Navigate ("www.bing.com")
)
on w_b DocumentCompleted arg do
(
print w_b.DocumentText
--print w_b.Document.body.InnerHtml
--print w_b.Document.body.InnerText
--print w_b.Document.body.OuterHtml
--print w_b.Document.body.OuterText
)
)
createdialog wb_text_test
So I tried to found out what happend,at last,I found if close the ScriptErrorsSuppressed option,if the website that embed has errors,
then due to this reason, the output DocumentText will be empty (“”) for lower version(2009~2012,2013 up is OK),If the IE is 10 or up version,the content will be printed for all 3dsmax version,so maybe that’s the IE problem,but I want to know if there has another best solution to fix it without update IE?I tried to force user to update default IE8 (win7) to IE10,but the installation need too much time,and the IE10 or up version need at least 50 MB or more,for my script,the best solution is not update IE…
Any good suggestion or anyone know how to fix it?Thanks in advance.