madura shantha

madura shantha

  • NA
  • 4
  • 4.6k

How to open a word editor and disable the save and print button in c#

Sep 21 2010 1:48 AM

Hi
I want to open a word document when a button is clicked in a windows form. I managed to do this by using the following code in the button click event.
Word._Application oWord;
Word._Document oDoc;
oWord = new Word.Application();
oWord.Visible = true;

oDoc = oWord.Documents.Add(ref oMissing, ref oMissing,
ref oMissing, ref oMissing);
now I need to disable the save and print buttons in the opened word document. (this is really like the word window you add a post to this forum.) is this possible? how can I do this? appriciate any help.
Thanks

Answers (1)