给出导出Gridpanel的功能
Dim json As String = e.ExtraParams("GridRows")
Dim eSubmit As New StoreSubmitDataEventArgs(json, Nothing)
Dim xml As XmlNode = eSubmit.Xml
Me.Response.Clear()
Me.Response.ContentType = "application/vnd.ms-excel"
Me.Response.AddHeader("Content-Disposition", "attachment; filename=submittedData.xlsx")
Dim xtExcel As New XslCompiledTransform()
xtExcel.Load(Server.MapPath("Excel.xslt"))
xtExcel.Transform(xml, Nothing, Me.Response.OutputStream)
Me.Response.[End]()
导出不起作用,但我可以在执行项目时看到窗口中的所有内容错误,状态代码200消息是“BADRESPONSE:无法读取属性'documentElement'为null”为什么会发生这种情况?< / p>
答案 0 :(得分:2)
将IsUpload="True"
添加到您的DirectEvent