Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
ctrl.exportFile("word", "11.doc", Me.Table1)
End Sub
Public Overrides Sub verifyrenderinginserverform(ByVal control As Control)
End Sub
其中重载了verifyrenderinginserverform这个函数(注意函数体是空的),否则可能出现错误提示(原因未知,望大牛指点)。
类型“XXXXX”的控件“xxxxxxx”必须放在具有 runat=server 的窗体标记内.