Board index » delphi » disable Save as and Save menu- options in Word

disable Save as and Save menu- options in Word

I need to disable the Save as and Save menu-options in Word using
WordApplication in Delphi5.

Could any1 tell me how??

Marco

 

Re:disable Save as and Save menu- options in Word


<<Marco v.Kimmenade:
I need to disable the Save as and Save menu-options in Word
using WordApplication in Delphi5.

Quote

var
  Temporary: OleVariant;
  Btn: OleVariant;
..
  { Hide the save menus }
  Temporary := True;
  Word.CommandBars['File'].Controls[
     'Save As...'].Delete(Temporary);
  Word.CommandBars['File'].Controls[
     'Save'].Delete(Temporary);

  Btn := Word.CommandBars['Standard'].Controls[3];
  Btn.Visible := False;

--
Deborah Pate (TeamB) http://delphi-jedi.org

  Use Borland servers; TeamB don't see posts via ISPs
  http://www.borland.com/newsgroups/genl_faqs.html

Other Threads