问题描述
我有一个问题,Webbrowser 控件显示的内容与代码中的内容完全不同。但我需要控件显示的文档。
在此图像中,您可以看到例如“主要特征不”和“Ausführungs-History”
但 Webbrowser.DocumentText 显示的是:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<Meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<Meta http-equiv="Content-language" content="en" />
<Meta name="generator" content="-Text Replaced-" />
<Meta name="author" content="-Text Replaced-" />
<Meta name="copyright" content="-Text Replaced-" />
<Meta name="robots" content="nofollow" />
<title>-Text Replaced-</title>
<Meta name="description" content="-Text Replaced-" />
<link rel="icon" href="-Text Replaced-" type="image/x-icon" />
</head>
<frameset rows="-Text Replaced-" frameborder="0" framespacing="0">
<frame src="-Text Replaced-" name="titlebar" scrolling="no" noresize="noresize" />
<frame src="-Text Replaced-" scrolling='auto' name='mainframe' />
<noframes>
<body>-Text Replaced- required a frames supporting browser.</body>
</noframes>
</frameset>
</html>
某些文本被替换为 -Text Replaced-。但是您可以看到这些字符串绝对缺失:“principle features not”和“Ausführungs-History”。我不知道为什么控件显示的内容与文档文本完全不同。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)