62,073
社区成员
发帖
与我相关
我的任务
分享
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.AppendHeader("Content-Type", "application/vnd.ms-powerpoint");
response.AppendHeader("Content-Disposition", "attachment;filename=MasterPresentation.pptx;");
response.BinaryWrite(masterPresentation.ToArray());
response.End();
masterPresentation.ToArray() 用你的PPT的二进制数据代替。