如何在MS-Word中复制ASP.Net网页内容 [英] How To Copy ASP.Net web page Content in MS-Word
本文介绍了如何在MS-Word中复制ASP.Net网页内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Balu .........
如何在MS-Word文档中复制ASP.Net网页内容(数据,图像和CSS)
在此先感谢
Hi, i am Balu.........
How To Copy ASP.Net web page Content(Data,Images and CSS) in MS-Word Document
Thanks in advance
推荐答案
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=Output.doc");
HttpContext.Current.Response.ContentType = "application/msword";
这篇关于如何在MS-Word中复制ASP.Net网页内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文