Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Allow user to modify a Word document?
Message
De
13/01/2009 06:15:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01372571
Message ID:
01373110
Vues:
40
>This is becoming an obsession: Assume that the code below is in a method of a Word automation class that has NO UI. An instance of Word is open and referenced by the Public variable oWord. The document to be edited is open and ready for editing. How do I ‘shell out’ to a process that would allow the user to edit the document using Word, and upon selection of Save, Print or Close, terminate the interactive use of Word, unbind the eventhandler and continue with the VFP application? What code belongs between IF and ENDIF? Can it be a single prg?
>
>
>**Method code to create an instance of oWord and open document here
>
>IF ‘custom’ $ cDocName
>    ** allow user to edit cDocName using word
>    ** regain control of Word and continue below
>Endif
>
>**  Continue with processing including save, print, quit
>
As per the CC, I nowhere said to use a "Public variable oWord", did I? If I did, I regret. Never use a public variable for word.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform