Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE,DDE, and others
Message
From
13/12/1999 10:37:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00302729
Message ID:
00302747
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform