在主窗体的按钮单击,打开word报表(表放在网页浏览器控件里)显示窗口,在该窗口的aftrload事件中,加入以下代码,执行提示如图错误,仍能显示word报表,只是word报表窗口的菜单显示的是word文字处理软件的菜单,不知何故。装的是word2007
Dim wbr As WinForm.WebBrowser = e.Form.Controls("WebBrowser1")
Dim tm As String = ProjectPath & "Attachments\执业证书.doc"
Dim fl As String = ProjectPath & "Reports\执业证书.doc"
Dim wrt As New WordReport(Tables("基层法律服务人员信息表"),tm,fl)
wrt.Build()
wrt.Quit()
wbr.AddRess = fl
此主题相关图片如下:qq图片20140306221237.jpg