Converting HTML to Word Format (doc, docx or rtf)

Hi Experts,

I am in need of a technique or component that will allow me to convert an HTML output to a format readable with Microsoft Word. Basically a user creates a CV and then has the choice of downloading it in either PDF or Word formats. I have done the PDF without a hitch with a scheduled convertor residing on the server. I was hoping for a similar technique with the Word files but have been unsuccessful in locating the software.

Any help would be appreciated
wooderzAsked:
Who is Participating?
 
danataylorConnect With a Mentor Commented:
Try adding a content disposition:
<%
    Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "filename=*.doc"
%>
0
 
MereteCommented:
0
 
savithaCommented:
I have not tried this,
Look at this,

 http://htmltortf.com/
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
danataylorCommented:
<html xmlns:o="urn:schemas-microsoft-com:office:office"
      xmlns:w="urn:schemas-microsoft-com:office:word">

<%
    Response.ContentType = "application/msword"
%>
0
 
wooderzAuthor Commented:
danataylor:

This just opened up in Internet Explorer. Looked great, but wasn't MS Word. How would I go about getting this into MS Word?
0
 
kevp75Connect With a Mentor Commented:
just to further dana's logic:

Sub createWord(sFName)
      Response.Buffer = True
      server.ScriptTimeout = 3000
      Response.ContentType = "application/vnd.ms-word"
      Response.AddHeader "content-disposition", "attachment; filename = "&sFName
End Sub

just pass the filename you want it named to this
0
 
discoveranotherCommented:
Ridiculous answers, all you are looking for is a straight forward converter, not having to write in code. I don't know why some on here even bother to answer with ridiculous comments.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.