faqts : Computers : Programming : Languages : Asp : ASP/VBScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

50 of 125 people (40%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

how to create a word document with desired font (like courier, cgtimes) with ASP application, in the local server.

Feb 18th, 2002 10:17
Saravpreet Minhas,


Response.ContentType = "application/vnd.ms-word" 
Response.AddHeader "content-disposition", "filename=" & minhas & ".doc"
'where minhas is a file name
'Regarding the font you can always specify 
Response.Write("<tr><font color=red>") 
Response.Write("<td>")
Response.Write rs("name")&"<br>"
Response.Write("</td>")



© 1999-2004 Synop Pty Ltd