如何使用c#将文件和任何word文档文件中的任何图像粘贴到Web浏览器控件? [英] How to paste any Image from file and any word document file to web browser control using c#?

查看:65
本文介绍了如何使用c#将文件和任何word文档文件中的任何图像粘贴到Web浏览器控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

Hello All,

我正在开发一个Windows窗体,我正在尝试使用c#将图像从文件或任何word文档文件粘贴到webbrowser控件,所以我怎么可能?

I am developing a windows form and i am trying to paste image(s) from file or any word document file to webbrowser control using c#, so how it is possible for me?

谢谢,

推荐答案

你想要吗?用图像替换 WebBrowser 的当前内容,或者将图像插入网页的某个特定位置?提供一些细节。

Do you want to replace the current contents of WebBrowser with an image, or to insert the image to some specific place of the Web page? Give some details.

但是一个图像(图像对象,使用 Image.FromFile 从文件加载),使用
PictureBox 控件可以更容易地显示。然后不需要 WebBrowser 控件,或者可以隐藏它。

But an image (Image object, loaded from file using Image.FromFile), can be shown easier using a PictureBox control. Then WebBrowser control is not needed, or can be hidden.


这篇关于如何使用c#将文件和任何word文档文件中的任何图像粘贴到Web浏览器控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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