Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have export dbf file from dataset using below method

VB
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()


but i cant able to open this file in foxpro.

Can anyone tell, how can export dbf file from dataset?
Posted
Updated 20-Jun-11 0:13am
v4
Comments
DaveAuld 9-Jun-11 5:07am    
Don't put 'its urgent', its rude. It is only urgent to you, and this is not a paid for service, so people will respond when they can. Putting its urgent is most likely going to end up in people ignoring it.
[no name] 21-Jun-11 0:15am    
Who knows?

1 solution

You should probably use a BinaryWriter.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900