Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Word Print Dialog Shows Flashing Document
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00397570
Message ID:
00398170
Vues:
15
>How do I eliminate the flashing of my MS Word document when I use the MS Word Print Dialog?
>
>#DEFINE wdDialogFilePrint 88
>oWord.Dialogs(wdDialogFilePrint).Show()

I don't think you can eliminate the flashing. The flashing indicates to the user that Word has an open dialog that needs attention. So, by showing the dialog, you've tripped the default behavior of Windows to notify the user.

If you want it to print without a dialog, you can issue the following:

#DEFINE wdPrintAllDocument 0
oWord.ActiveDocument.PrintOut( , , wdPrintAllDocument)

The PrintOut method has nineteen parameters; it's very flexible and allows you to set just about everything in the Print dialog, including whether to print in the background or foreground, where to send it, page range, and so on.

Hope this helps.

- della
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform