--
Dim tmp As String = "D:\\报价\\12342435.xlsx"
Dim mht As String = ProjectPath & "Reports\\资料卡.mhtml"
Dim rpt As New XLS.Book(tmp)
rpt.SaveToMHT(mht)
Dim web As system.Windows.Forms.WebBrowser = e.Form.Controls("WebBrowser1").basecontrol
Web.Navigate(mht)
Do Until Web.ReadyState = 4
Application.DoEvents()
Loop
web.Document.Body.Style = "zoom:0.6"
Dim SE As WinForm.Label = e.Form.Controls("Label1")
SE.text = Web.document.documentElement.clientWidth
上面两句代码怎么写?
我的目的想知道ProjectPath & "Reports\\资料卡.mhtml"的宽度(像素)
[此贴子已经被作者于2020/5/7 0:01:34编辑过]