• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1376
  • Last Modified:

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
0
wooderz
Asked:
wooderz
2 Solutions
 
MereteCommented:
0
 
savithaCommented:
I have not tried this,
Look at this,

 http://htmltortf.com/
0
 
danataylorCommented:
<html xmlns:o="urn:schemas-microsoft-com:office:office"
      xmlns:w="urn:schemas-microsoft-com:office:word">

<%
    Response.ContentType = "application/msword"
%>
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
danataylorCommented:
Try adding a content disposition:
<%
    Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "filename=*.doc"
%>
0
 
kevp75Commented:
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now