Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Previewing in Word only
Message
 
 
À
10/07/2001 00:13:38
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00528482
Message ID:
00529599
Vues:
16
Hi!

I see this thread is not answered for a long time, so I would like to give you some suggestions, despite I do not know the exact approach.

First of all, if you want this just to restrict users editing of the document after preview, make the DOC file created by Word read-only, than open it in Word again and preview.

If you wand to close word immediately after preview closed... Well, you than need to find a way HOW distinguish from VFP the states of the Word to see if it is in preview mode or it is just in document editing state. I don't know how. However, if preview cuses modal state in the OLE Automation, than returning control to VFP is a sign of finishing of the preview mode and you can close the document from VFP. If this cause no modal state, than you require to check Word state in a loop and see if Word is still in preview mode...

Good luck!

>From VFP, we are using Word automation to preview a document. Once we open the document, we update some fields in the Word document and issue the preview after. Is there a way to do the same but to restrict the Word process to the preview only? Because, as soon as the user closes the preview, he enters in the Word document.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform