>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