public partial class Test : Page { protected override void Render(HtmlTextWriter writer) { Response.Clear(); Response.Buffer = true; Response.ContentType = "application/msword"; StringBuilder sb = new StringBuilder(); StringWriter stringWriter = new StringWriter(sb); HtmlTextWriter htmlTextWriter = new HtmlTextWriter(stringWriter); base.Render(htmlTextWriter); Response.Write(sb.ToString()); Response.End(); } }
Tuesday, November 16, 2010
How to output web page as MS word document
Subscribe to:
Post Comments (Atom)
Azure Storage Account Types
Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...
-
Why we need asynchronous tasks? Execute a time consuming operations in parallel to the CLR thread which execute the request If you have ...
-
Demo: I was thinking a way to show images before actually uploading them to server. I would say to preview images using javascript. Obv...
No comments:
Post a Comment