Web浏览器控件中的数据显示问题 [英] Problem with data display in a web browser control

查看:84
本文介绍了Web浏览器控件中的数据显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个窗口,其中有两个控件。左侧是一个图片框,右侧是一个Web浏览器控件。我正在图片框中加载扫描文档。然后我选择一个区域应该调用OCR功能并在显示来自sharepoint站点的编辑页面URL的Web浏览器控件中显示数据。我能够执行OCR相关部分但是在图片框的鼠标注册事件中我应该如何自动填充该部分Web浏览器控件中的数据。我尝试使用DOM的ID,但是没有用。我甚至尝试刷新Web浏览器控件中加载的网页,即使这样也不行。

I am working on a windows form which has two controls in it.Left side is a picture box and right side is a web browser control.I am loading an scanned document in the picture box.Soon as I select an area that should call an OCR functionality and display the data in the web browser control that is displaying an edit page url from a sharepoint site.I am able to do the OCR related part but on mouse up event of the picture box how should I automatically fill that data in the web browser control.I tried using the id of DOM but that doesn''t work out.I even tried refresh the web page that is loaded in the web browser control even that isn''t working.

推荐答案

在从图片框控件生成的密钥启动事件中,您应根据您的选择更改浏览器控制器类的URL,然后刷新浏览器控件。但是你的sharepoint部分应该知道管理你正在使用的新URL(应该有一些参数)。
On your key up event, generated from the picture box control, you should change the URL of the browser controller class according to your selection and then refresh the browser control. But your sharepoint part should know to manage the new URL (that should have some parameters) that you are using.


这篇关于Web浏览器控件中的数据显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆