从数据集中导出.dbf文件 [英] Export .dbf file from dataset
本文介绍了从数据集中导出.dbf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我已经使用以下方法从数据集中导出了dbf文件
Hi All,
I have export dbf file from dataset using below method
Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=" + FileName + typefile)
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.Public)
Response.ContentType = "application/vnd" + typefile
Dim stringWrite As New System.IO.StringWriter()
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite)
gvExport.RenderControl(htmlWrite)
Response.Write(stringWrite.ToString())
Response.End()
但是我无法在foxpro中打开此文件.
谁能说出如何从数据集中导出dbf文件?
but i cant able to open this file in foxpro.
Can anyone tell, how can export dbf file from dataset?
推荐答案
您可能应该使用BinaryWriter.
You should probably use a BinaryWriter.
这篇关于从数据集中导出.dbf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文