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:17:49
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:
01373111
Vues:
23
>> Then do not call Quit() (VFP already has control - check those messages printed in VFP window. Maybe you mean window.activate).
>The messages NEVER appear in a VFP window because the automation process that instantiates Word does not have a user interface. Messages don't appear at all except when I run the code as a stand-alone prg from the command window. Then they appear on the desktop. The balloon in your code sample never appears under any circumstances. Perhaps that is a problem with Word 12?
>
>VFP app does this: open word, create document, call WordEvents.prg (for editing)
>Wordevents.prg does this instantiate eventhandler, make word visible for editing, and SHOULD return control to VFP app upon Save? Print? Close? I really don't care what event at this point.
>
>Here's what I observe: 1) WordEvents executes and there is no pause for editing (the VFP app continues on the following line), or 2) Word opens for editing and the VFP app does not continue until after oWord.Quit()

I surrender.
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