469,313 Members | 2,236 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,313 developers. It's quick & easy.

Chinese font are not coming when exporting file in chinese language.

Hi

I am writing a functionality to export a file as...cs file
---------=-
Expand|Select|Wrap|Line Numbers
  1. Response.Buffer = true;
  2.  Response.ContentType = "application/vnd.ms-excel";
  3. Response.ContentEncoding = System.Text.Encoding.Default;
  4. Response.Charset = "";
  5. Response.AddHeader("content disposition", "attachment;filename=RSG_Report_" + (string)Session["man"] + ".xls");
  6. System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
  7.  System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);
  8.                 oHtmlTextWriter.Write("<br>");
  9.                 oHtmlTextWriter.Write("<B>" + Label7.Text + " : ") ;                  oHtmlTextWriter.Write(Label12.Text);
  10.                 oHtmlTextWriter.Write("<br>");
  11.                 Response.Write(oStringWriter.ToString());
  12.                 Response.End();
My application supports multiple languages-It is working fine for english and french language--

But when I download file in chinese language- Chinese font are not coming..--

Plz advice me what to do--

Thanks a lot in advance..

Manoj aggarwal
Sep 11 '07 #1
0 1148

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Winnie | last post: by
6 posts views Thread by Steve | last post: by
2 posts views Thread by Evan Camilleri | last post: by
4 posts views Thread by Sebastian.Pawlus | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.