我正在使用以下命令在c#.net
中创建pdf文档 Response.Clear();
Response.ClearHeaders();
Response.ClearContent();
Response.ContentType = "application/pdf"; //"application/pdf";
Response.AddHeader("content-length", stream.Length.ToString());
Response.AddHeader("content-disposition", "attachment;filename=" + string.Format("d:\\members-{0}.pdf", string.Format("{0:ddMMyyyy}", DateTime.Today)));
Response.ContentEncoding = new System.Text.UTF8Encoding();
Response.BinaryWrite(stream.ToArray());
Response.Flush();
stream.Close();
Response.End();
注意:stream是我想写的内容
问题:始终打开对话框,它要求我保存所有时间。我想隐藏此对话框并将文件保存在任何需要的位置。请帮帮我