Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE bound/container control
Message
De
30/04/1999 02:01:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/04/1999 13:18:57
Phillip Perkins
Technology Consulting, Inc.
Louisville, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00213541
Message ID:
00213784
Vues:
30
>How do you create an OLE object in a form (specifically a Word
>document) and have it print the document from the form. If you
>insert the document into the form either by OLE bound control
>or container control the menubar/toolbars switch to Word menubar/
>toolbars; however, the "Print" option is deactivated.
I'm not apt to use it with OLEBound and did never try with that. With OLEcontainer control you can print :
1) Dblclick activate word. Opens in its native window and all menus available including print.
2) Print programmatically from VFP (silent).
* ie: PrintDoc command button.click
with ThisForm.myWrdControl
 .activate  && Otherwise it would return as no doc active
 .printout
 .saved = .t. && Suppress save dialog at exit
* Here a wait-check for word finish printing
 .close     && Kill background winword 
endwith
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