Login | Register  

Creating Word Files Online

by Scud   Tuesday, October 03, 2006 Rating:
 Vote this news:


ASP has the ability to dynamically output any kind of office application format. Before to start coding, The first thing we need to do is set correct file type. Becase the browser needs to know what to do with the file. Second step is to edit file name. You can use HTML and CSS to create styles in your word document.


Here is a comple source code :

<%

    Response.ContentType = "application/msword"

    Response.AddHeader "Content-Disposition", "attachment;filename=NAME.doc"   

    response.Write("Dotnetindex.com : <a href=""http://www.dotnetindex.com"">Visit Site</a><br>" & vbnewline)

    response.Write("<h1>We can use HTML codes for word documents</h1>")

    response.Write ("<div style=""padding:4px; font:11px arial"">CSS can be used tooo</span>")
   
%>




Dotnetindex.com is listed with 411asp.net
Dotnetindex.com is listed with aspin.com
Dotnetindex.com is listed with jspin.com
PHP, ASP, .NET, JSP Resources, Reviews







page counter
Copyright © 2007 Powered by GNews Publisher Positive. All rights reserved. Contact Us - Load Time: 0.03 second(s)