以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]WebBrowser 控件如何初始化?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=40525)

--  作者:有点甜
--  发布时间:2013/9/22 19:32:00
--  
 按钮的代码改成这样

e.Form.Controls("WebBrowser1").AddRess = ""
Application.DoEvents()

Dim tmp As String = ProjectPath & "Attachments\\报表.xls"
Dim rpt As String = ProjectPath & "Reports\\报表.xls"
Dim Book As New XLS.Book(tmp)
Book.Build() 
Book.Save(rpt)
e.Form.Controls("WebBrowser1").AddRess = rpt