Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to open word doc without toolbars
Message
De
24/10/2001 14:42:23
 
 
À
24/10/2001 13:49:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00572778
Message ID:
00572817
Vues:
25
>how to open word doc without toolbars.
>I have tried all the examples for opening word doc in vfp only
>
>oWsh = CREATEOBJECT( "Wscript.Shell" )
>oWsh.Run( '"C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\WINWORD.EXE  "  + "&myfile" ')
>oWsh = NULL
>RELEASE oWsh
>
>worked for me ( for 98 & NT - office 97 & 2000).
>I just want to show a text document with no toolbars in word. The document has been marked readonly so that it cannot be modified but the toolbars clutter the the space so I want to remove them programmatically.
>Rajesh

You could access the opened word instance with automation and remove the toolbars programmatically like so:
oW = GetObject(,"Word.Application")
oW.Commandbars("Formatting").Visible = .f.
oW.Commandbars("Standard").Visible = .f.
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform