Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit word doc from VFP and save as HTML
Message
From
21/03/2009 10:22:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01390085
Message ID:
01390234
Views:
34
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform