M
Morten Snedker
The code below is used to get the content of a dataset to Excel and it
works quite okay, except:
Special Danish charachters look crappy when shown in Excel. Any ideas
if the problem can be solved?
response.Clear()
response.Charset = "iso-8859-2"
response.ContentType = "application/vnd.ms-excel"
Dim stringWrite As New System.IO.StringWriter
Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite)
Dim dg As New DataGrid
dg.DataSource = ds.Tables(0)
dg.DataBind()
dg.RenderControl(htmlWrite)
response.Write(stringWrite.ToString)
response.End()
Regards /Snedker
works quite okay, except:
Special Danish charachters look crappy when shown in Excel. Any ideas
if the problem can be solved?
response.Clear()
response.Charset = "iso-8859-2"
response.ContentType = "application/vnd.ms-excel"
Dim stringWrite As New System.IO.StringWriter
Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite)
Dim dg As New DataGrid
dg.DataSource = ds.Tables(0)
dg.DataBind()
dg.RenderControl(htmlWrite)
response.Write(stringWrite.ToString)
response.End()
Regards /Snedker