convert HTML to Word doc -
07-09-2007
, 11:16 AM
I have this code that creates an HTML formatted document and I can open the
document through Word. But I want the format to be truely MS Word (2003).
Does anyone know how to do this?
Here's my code that does the first conversion:
xmlfile = "myfile.xml"
xsltfile = "myfile.xslt"
Dim xmlDoc As New XmlDocument()
xmlDoc.Load(Server.MapPath(xmlfile))
Dim xslTran As XslTransform = New XslTransform()
xslTran.Load(Server.MapPath(xsltfile))
Response.ContentType = "application/msword"
Response.ContentEncoding = System.Text.Encoding.Default
Response.Charset = ""
xslTran.Transform(xmlDoc, Nothing, Response.Output) |