Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE,DDE, and others
Message
De
13/12/1999 10:37:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00302729
Message ID:
00302747
Vues:
21
>I need to give my users a word processing doc (either Word or WP) so they can edit the content. The program will generate the initial document. The sales guys desire to edit the dcoument before it goes to the customer.
>
>I am want to keep them in the app and allow them to use the word processing app to edit the document. What is the bes tapproach for this?


Use a prewritten doc as a template - ie: mytemplate.doc. At runtime create a new doc based on that template :
oWord = createobject("word.application")
with oWord
 .Documents.Add("c:\myPath\myTemplate.doc")
 .Variables("SomeVar").Value = "SomeNewValue" && docvariable "SomeVar" /mergeformat field
 .visible = .t.
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform