作者pa2pa2 (= =)
看板Visual_Basic
标题[ASP]请问资料库转换的问题
时间Fri Sep 16 12:29:44 2005
我想利用dataset把查询的资料从sql叫出来
然後再存到dbf档里(更新里面的资料) 这样可行吗?
我有参考前面大大说的access转成excel的方式 可是我怎麽用都不行
请问各位大大下面程式码要怎麽修改呢
Dim stmWt As New StreamWriter(Response.OutputStream, Encoding.Default)
Response.AddHeader("Content-Disposition","attachment; 111.dbf")
Response.ContentType = "application/111.dbf"
Dim tw As StringWriter = New System.IO.StringWriter
Dim hw As HtmlTextWriter = New HtmlTextWriter(tw)
DataGrid1.RenderControl(hw)
stmWt.Write(tw.ToString())
stmWt.Flush()
stmWt.Close()
Response.End()
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.112.232.13