>I would like to allow my users to edit a doc in MS Word from VFP and then save it as HTML. I already have a program that calls Word to create form letters so that much I got. What I need now is to allow a user to create or edit a doc and save it as HTML so it can be inserted into a Web Page. The Word automation code I have is very old. Does anyone have something new that does the HTML stuff? Is the Word HTML going to work in a page on a standard LAMP server?
One option would be to create the HTML code yourself, using data provided by the users and stored in your database.
This is really quite simple: just add a few codes, and you have a complete HTML document.
Here is - from memory, I hope it is correct - the basic structure of an HTML document:
<HTML>
<HEAD>
<TITLE>This will be shown in the window title</TITLE>
</HEAD>
<BODY>
<P>The main text goes here.
<P>Start every paragraph with a "P" code.
</BODY>
</HTML>
I did something similar, just to give the users the capacity to preview a report (text-mode) on screen.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)