how to export a html page content to MS word {javascript, ajax, jquery code}
how to export a开发者_开发问答 html page content to ms word {javascript, ajax, jquery code}
Whats wrong with simply saving it as a .doc instead of .html
I understand this might be a bit limited. But you might need to provide some more info.
I wrote a little Adobe air application that needed to create word documents to be printed by merging a template with some data. Instead of figuring out the Word API, I just use HTML templating and saved the resulting HTML locally as a .doc (as Russel Dias points out) and Word opens it without a problem. Client is still happily using it.
精彩评论