Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to save HTML page as Word doc

Status
Not open for further replies.

jhowe

Programmer
May 19, 2000
28
US
I am creating a web page that uses JavaScript and DHTML to display a dynamically updating price and options list. Users would check the options they want and get pricing data instantaneously. When completed, I need a way to capture the various options they chose and price that was extended to them for each option. Ideally I could read this into a Word document or another common file type that could be archived, printed, emailed as an attachment, and modified by hand at a later date.<br><br>Thanks in advance for any enlightenment.
 
I dont know the exact answer, but your situation seems to be a perfect canidate for XML(look it up at msdn.microsoft.com) <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
parse out the data you need and save with extension doc or html or even xml
 
Word should be able to open a HTML and automatically save it as whatever format you want, assuming that you did get the webpage authoring tool with M$ Word. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
I have decided to write data out to a text stream as HTML with MS Office XML tags built in. Saving with a .doc extension lets the user treat it is a native Word document. It was not feasible to open the original HTML file in Word because it is chock full of scripting and DHTML, and I needed to update script variables before writing to the Word doc. I am developing for IE only and it is assumed the user loads pages from a local drive, so this system is working pretty well (once you figure out MS Office XML tags). <br><br>Thanks for all of your help !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top