看板 Visual_Basic 關於我們 聯絡資訊
我想利用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