Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit word doc from VFP and save as HTML
Message
De
21/03/2009 10:22:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01390085
Message ID:
01390234
Vues:
35
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform