472,107 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,107 software developers and data experts.

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 1194

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.