S
Sharon
When i download a dbf file to my local computer, the last few record of that
dbf file will full of funny character.
Here is my coding :
' Identify the file to download including its path.
Dim filepath As String =
Server.MapPath("\eClinicApp\VISITD.DBF")
' Identify the file name.
Dim filename As String = System.IO.Path.GetFileName(filepath)
Response.Clear()
' Specify the Type of the downloadable file.
Response.ContentType = "application/octet-stream"
' Set the Default file name in the FileDownload dialog box.
Response.AddHeader("Content-Disposition", "attachment;
filename=""" & filename & """")
Response.Flush()
' Download the file.
Response.WriteFile(filepath)
Anybody know what happen? pls help
Another question is can the file that i wanted to download in zipped format?
if can, can teach me how?
Best Regards
Rico Teh
dbf file will full of funny character.
Here is my coding :
' Identify the file to download including its path.
Dim filepath As String =
Server.MapPath("\eClinicApp\VISITD.DBF")
' Identify the file name.
Dim filename As String = System.IO.Path.GetFileName(filepath)
Response.Clear()
' Specify the Type of the downloadable file.
Response.ContentType = "application/octet-stream"
' Set the Default file name in the FileDownload dialog box.
Response.AddHeader("Content-Disposition", "attachment;
filename=""" & filename & """")
Response.Flush()
' Download the file.
Response.WriteFile(filepath)
Anybody know what happen? pls help
Another question is can the file that i wanted to download in zipped format?
if can, can teach me how?
Best Regards
Rico Teh