如何在Windows应用程序中清除webbrowser url? [英] How to clear webbrowser url in windows application ?

查看:83
本文介绍了如何在Windows应用程序中清除webbrowser url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai

我正在使用vb.net开发Windows应用程序,因为我将在Windows应用程序中使用WebBrowser windows控件查看网页。



在页面加载中我将传递网站URL和文件名以便在网页查看器中查看pdf文件并使用webBrowser控件在Windows应用程序中显示,在按钮单击事件中我将再次传递相同的URL与另一个pdf文件名,我将保存将页面加载的pdf文件作为字节传入sql server,这里我将得到文件无法进程,bcz被其他进程使用

所以如何清除此文件形式的webbrowser控件并保存pdf文件,bcz文件在asp页面中打开,所以需要先清除,我传递临时文件名表单webbrowser url但出现同样的错误。





请回复asap



问候

Aravind

Hai
I am developing windows application using vb.net,in that i will use WebBrowser windows control for view webpage in windows application.

in page load i will pass website url and file name for viewing pdf file in web page viewer and show in windows application using webBrowser control,in button click event i will again pass same url with another pdf file name and i will save the pdf file which pass in page load into sql server as byte,here i will get "file cannot be process,bcz used by another process"
so how to clear this file form webbrowser control and save pdf file ,bcz file is open in asp page,so need to clear first ,i am pass temp file name form webbrowser url but same error appear.


Pls reply asap

Regards
Aravind

推荐答案

这篇关于如何在Windows应用程序中清除webbrowser url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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