Click here to Skip to main content
16,021,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi, i am Balu.........

How To Copy ASP.Net web page Content(Data,Images and CSS) in MS-Word Document






Thanks in advance
Posted
Comments
Member 10453691 10-Dec-13 4:49am    
Thnks but i not understand these. i want code of copy button when i click button copy the whole page can b copied.

1 solution

C#
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";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900