Gujarati script
Problem with exporting datagrid having gujarati data in word file
Posts  1 - 1  of  1
onlytej
hi all,

I am new in this forum. i am web developer in Ahmedabad, Gujrat. I am working on one project which is in English and Gujarati Language.

My client have one requirement for reporting, as client can export report shown in datagrid in various format like excel, word, pdf.

for that i have written one code as below :

Response.Clear()
Response.AddHeader("content-disposition", String.Format("attachment;filename={0}" + ext, filename))
Response.Charset = ""
Response.ContentType = "application/" + ext

Dim stringWrite = New IO.StringWriter()
Dim htmlWrite = New HtmlTextWriter(stringWrite)
GridView1.RenderControl(htmlWrite)
Response.Write("")
Response.Write(stringWrite.ToString())
Response.End()

So this code is working fine with excel 2007

but the problem created when i export the word 2007 file. it gives some system character and when i translate this character it will be translated in gujarati.

i have also change the unicode at the save or open document as i read from
http://office.microsoft.com/en-us/help/HA101212491033.aspx#4

so please help me for finding this solution.



Thanks in advance....


Onlytej......
Save
Cancel
Reply
 
x
OK