By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,743 Members | 1,018 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,743 IT Pros & Developers. It's quick & easy.

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

P: 13
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
Share this question for a faster answer!
Share on Google+

Post your reply

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