System.Web.HttpResponse Response=System.Web.HttpContext.Current.Response;
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
 
\\Response.ContentType="application/msword";\\导成word成功
Response.ContentType="application/pdf";\\导成pdf失败,页面显示空白pdf
Response.WriteFile("c:\\temp.pdf");
Response.Flush();
 
Response.Close();