vb.net导Excel问题 5
下面点按钮生成excel的代码ProtectedSubButton1_Click(ByValsenderAsObject,ByValeAsSystem.EventArgs...
下面点按钮生成excel的代码
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str As String = Today() & "-" & Second(Now())
Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "inline;filename= " & str & ".xls")
Button1.Visible = False
End Sub
但是生成成功后,打开excel说:不能读取文件。如果导出数据少点又没有问题,请问各位高手,这是什么情况啊?
正解一定加分,谢谢! 展开
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str As String = Today() & "-" & Second(Now())
Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "inline;filename= " & str & ".xls")
Button1.Visible = False
End Sub
但是生成成功后,打开excel说:不能读取文件。如果导出数据少点又没有问题,请问各位高手,这是什么情况啊?
正解一定加分,谢谢! 展开
展开全部
上 http://club.excelhome.net/index.asp 网站试试看。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询