Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need some assistance with Word automation
Message
De
14/10/2003 10:16:17
Dick Day
Madison County, Nebraska
Nebraska, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Need some assistance with Word automation
Divers
Thread ID:
00838525
Message ID:
00838525
Vues:
50
I have routines in place that build the document, format it and open the document for the user to edit/print and exit. I now need the ability to simply use Word as a print engine with no user intervention. I can't seem to find the correct syntax to quit without saving changes after printing the document. I run into 2 problems.
1. If the Quit command is issued immediately following the print command, Word cautions that quitting now will abort the current print job. Do I need to set a timer between the 2 commands to allow enough time for the job to print?
2. When the program issues the Quit command, the user is asked if they want to save changes. I need to be able to quit Word w/o saving changes. I've recorded the quit procedure in a macro but even though I am asked to save changes, the macro doesn't record this action. In Tamar's book, it says that In Word, parameters can be passed with the Quit command to handle this but I've been unable to find these in the book.

Any help would be greatly appreciated!

Dick Day
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform