Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to open word doc without toolbars
Message
From
24/10/2001 14:42:23
 
 
To
24/10/2001 13:49:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00572778
Message ID:
00572817
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform